diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 06:58:49 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 07:12:38 +0300 |
commit | 6275541df7e02c40e8c8650bba3104b5df8d34ef (patch) | |
tree | 042b852b57a56c9423eb58bc1b7afe1c7c2188fa /source/blender/io/wavefront_obj/tests/obj_importer_tests.cc | |
parent | 96d88e56143b1972d9b0cd6c53c6e0cda9b62269 (diff) |
Cleanup: use ELEM/STR_ELEM/STREQ macros
Diffstat (limited to 'source/blender/io/wavefront_obj/tests/obj_importer_tests.cc')
-rw-r--r-- | source/blender/io/wavefront_obj/tests/obj_importer_tests.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/wavefront_obj/tests/obj_importer_tests.cc b/source/blender/io/wavefront_obj/tests/obj_importer_tests.cc index e40f7db0b1f..cd97d5fb485 100644 --- a/source/blender/io/wavefront_obj/tests/obj_importer_tests.cc +++ b/source/blender/io/wavefront_obj/tests/obj_importer_tests.cc @@ -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); |