diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-12 03:25:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-12 03:25:18 +0300 |
commit | 1bd6ed712863d1b052f71a39a71b11796d9caaa2 (patch) | |
tree | 7217c6aa4714eaa54f482e66e4d623104fa6bef8 | |
parent | 04530c93837368311b47c53ee6d4cee039ae1836 (diff) |
Correct gtest EXPECT use
-rw-r--r-- | tests/gtests/blenlib/BLI_kdopbvh_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/gtests/blenlib/BLI_kdopbvh_test.cc b/tests/gtests/blenlib/BLI_kdopbvh_test.cc index e65f0fafa67..bc8cf58d69d 100644 --- a/tests/gtests/blenlib/BLI_kdopbvh_test.cc +++ b/tests/gtests/blenlib/BLI_kdopbvh_test.cc @@ -44,7 +44,7 @@ TEST(kdopbvh, Single) BLI_bvhtree_insert(tree, 0, co, 1); } - EXPECT_EQ(1, BLI_bvhtree_get_size(tree)); + EXPECT_EQ(BLI_bvhtree_get_size(tree), 1); BLI_bvhtree_balance(tree); BLI_bvhtree_free(tree); @@ -77,7 +77,8 @@ static void find_nearest_points_test(int points_len, float scale, int round, int fflush(stdout); } #endif - EXPECT_TRUE(j >= 0 && j < points_len); + EXPECT_GE(j, 0); + EXPECT_LT(j, points_len); EXPECT_EQ_ARRAY(points[i], points[j], 3); } } |