mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Add change count to var tab tooltip
This commit is contained in:
committed by
WarmUpTill
parent
eec9244e4c
commit
7fa0ba3355
@@ -9,15 +9,20 @@ TEST_CASE("Variable", "[variable]")
|
||||
REQUIRE_FALSE(variable.GetSecondsSinceLastUse());
|
||||
|
||||
REQUIRE(variable.Value() == "");
|
||||
REQUIRE(variable.GetPreviousValue() == "");
|
||||
REQUIRE(variable.GetDefaultValue() == "");
|
||||
REQUIRE(variable.GetSaveAction() ==
|
||||
advss::Variable::SaveAction::DONT_SAVE);
|
||||
REQUIRE(variable.GetValueChangeCount() == 0);
|
||||
|
||||
variable.SetValue("testing");
|
||||
REQUIRE(variable.Value() == "testing");
|
||||
REQUIRE(variable.GetPreviousValue() == "");
|
||||
REQUIRE(variable.GetValueChangeCount() == 1);
|
||||
|
||||
variable.SetValue(123);
|
||||
REQUIRE(variable.Value() == "123");
|
||||
REQUIRE(variable.GetPreviousValue() == "testing");
|
||||
|
||||
variable.SetValue(123.0);
|
||||
REQUIRE(variable.Value() == "123");
|
||||
|
||||
Reference in New Issue
Block a user