diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-23 10:45:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-23 10:51:29 +0300 |
commit | 80a7efdc1d395f44a14e7bf1085a5d1b3fe45547 (patch) | |
tree | 7c7dc860c64ee1ad933350e67c80d9a36a970637 /tests/gtests/testing | |
parent | b0a7e77700535a0fb021505f1920322d633926d4 (diff) |
UI: multi word filtering in search menu
D1080 by @rockets, with own improvements to tests
Diffstat (limited to 'tests/gtests/testing')
-rw-r--r-- | tests/gtests/testing/testing.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/gtests/testing/testing.h b/tests/gtests/testing/testing.h index b0a6379e5c0..1594ed3926c 100644 --- a/tests/gtests/testing/testing.h +++ b/tests/gtests/testing/testing.h @@ -82,4 +82,13 @@ inline void EXPECT_EQ_ARRAY(const T *expected, T *actual, const size_t N) { } } +template <typename T> +inline void EXPECT_EQ_ARRAY_ND(const T *expected, T *actual, const size_t N, const size_t D) { + for(size_t i = 0; i < N; ++i) { + for(size_t j = 0; j < D; ++j) { + EXPECT_EQ(expected[i][j], actual[i][j]); + } + } +} + #endif // __BLENDER_TESTING_H__ |