Test: Add utility to do near comparison for float[2]

This commit is contained in:
Sergey Sharybin 2020-12-28 17:22:37 +01:00
parent 81c57c9471
commit 5428ad40e8
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,13 @@ const std::string &flags_test_release_dir(); /* bin/{blender version} in the bui
} // namespace blender::tests
#define EXPECT_V2_NEAR(a, b, eps) \
{ \
EXPECT_NEAR(a[0], b[0], eps); \
EXPECT_NEAR(a[1], b[1], eps); \
} \
(void)0
#define EXPECT_V3_NEAR(a, b, eps) \
{ \
EXPECT_NEAR(a[0], b[0], eps); \