Cleanup: use ELEM/STR_ELEM/STREQ macros

This commit is contained in:
2022-09-26 13:58:49 +10:00
parent 96d88e5614
commit 6275541df7
11 changed files with 30 additions and 25 deletions

View File

@@ -87,7 +87,7 @@ class obj_importer_test : public BlendfileLoadingBaseTest {
ASSERT_STREQ(object->id.name, exp.name.c_str());
EXPECT_EQ(object->type, exp.type);
EXPECT_V3_NEAR(object->loc, float3(0, 0, 0), 0.0001f);
if (strcmp(object->id.name, "OBCube") != 0) {
if (!STREQ(object->id.name, "OBCube")) {
EXPECT_V3_NEAR(object->rot, float3(M_PI_2, 0, 0), 0.0001f);
}
EXPECT_V3_NEAR(object->scale, float3(1, 1, 1), 0.0001f);