Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-01-19 12:44:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-19 12:44:57 +0300
commitdea38d78c4c4dc965a622be6e676158686a076e2 (patch)
tree7de09ad131feec1d7b98dabb5b4457fd0cb2b913 /tests/gtests/testing
parentdf465368baed5cc7e510c4f26ceef728beeb45ad (diff)
GTests: were using C++11 feature
Diffstat (limited to 'tests/gtests/testing')
-rw-r--r--tests/gtests/testing/testing.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/gtests/testing/testing.h b/tests/gtests/testing/testing.h
index 9083654f1d5..b0a6379e5c0 100644
--- a/tests/gtests/testing/testing.h
+++ b/tests/gtests/testing/testing.h
@@ -75,4 +75,11 @@ double CosinusBetweenMatrices(const TMat &a, const TMat &b) {
}
#endif
+template <typename T>
+inline void EXPECT_EQ_ARRAY(const T *expected, T *actual, const size_t N) {
+ for(size_t i = 0; i < N; ++i) {
+ EXPECT_EQ(expected[i], actual[i]);
+ }
+}
+
#endif // __BLENDER_TESTING_H__