Fix issue in tests where we compared with equality operator instead of strcmp.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
02aa6f252e
commit
2dcb197191
|
@ -53,9 +53,9 @@ TEST_CASE("Try Parse Enum case insensitive", "[Utilities]") {
|
|||
}
|
||||
|
||||
TEST_CASE("Enum To String", "[Utilities]") {
|
||||
CHECK(TestEnumHelper::ToString(TestEnum::Val1) == "Val1");
|
||||
CHECK(TestEnumHelper::ToString(TestEnum::Val2) == "Val2");
|
||||
CHECK(TestEnumHelper::ToString(TestEnum::Val3) == "Val3");
|
||||
CHECK(strcmp(TestEnumHelper::ToString(TestEnum::Val1), "Val1") == 0);
|
||||
CHECK(strcmp(TestEnumHelper::ToString(TestEnum::Val2), "Val2") == 0);
|
||||
CHECK(strcmp(TestEnumHelper::ToString(TestEnum::Val3), "Val3") == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("Enum Get Values", "[Utilities]") {
|
||||
|
|
Loading…
Reference in New Issue