forked from bartvdbraak/blender
Test: Add utility to do near comparison for float[2]
This commit is contained in:
parent
81c57c9471
commit
5428ad40e8
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user