From 80a7efdc1d395f44a14e7bf1085a5d1b3fe45547 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 23 Mar 2016 18:45:32 +1100 Subject: UI: multi word filtering in search menu D1080 by @rockets, with own improvements to tests --- tests/gtests/testing/testing.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/gtests/testing') 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 +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__ -- cgit v1.2.3