summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Scott Randolph <randolphs@google.com> 2017-05-16 11:06:29 -0700
committer Scott Randolph <randolphs@google.com> 2017-05-16 11:14:07 -0700
commitbeb39429bd35f1257e6b0cf03115c7bdf66cdfbc (patch)
treeacdf8821b2fc45937d1696e7ed4b5eefd215e3f6
parentdb35c4956477823b245ae57a383554b46f0ecca4 (diff)
Fix apparent copy/paste error in double test
Two test cases provide special testing for matrices holding DOUBLE values. These test cases were inadvertently conditioned on matrices with float type, meaning they could never run. Test: Run mat_test on gordon_peak Change-Id: I26503c311eca80729633cf59061e7cfaf4b920de
-rw-r--r--libs/math/tests/mat_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/math/tests/mat_test.cpp b/libs/math/tests/mat_test.cpp
index c365366384..3217a1a44b 100644
--- a/libs/math/tests/mat_test.cpp
+++ b/libs/math/tests/mat_test.cpp
@@ -487,7 +487,7 @@ do { \
for (size_t i = 0; i < v1.size(); ++i) { \
EXPECT_FLOAT_EQ(v1[i], v2[i]); \
} \
- } else if (std::is_same<TypeParam,float>::value) { \
+ } else if (std::is_same<TypeParam,double>::value) { \
for (size_t i = 0; i < v1.size(); ++i) { \
EXPECT_DOUBLE_EQ(v1[i], v2[i]); \
} \
@@ -506,7 +506,7 @@ do { \
const decltype(T2) t2 = T2; \
if (std::is_same<TypeParam,float>::value) { \
ASSERT_FLOAT_EQ(t1, t2); \
- } else if (std::is_same<TypeParam,float>::value) { \
+ } else if (std::is_same<TypeParam,double>::value) { \
ASSERT_DOUBLE_EQ(t1, t2); \
} else { \
ASSERT_EQ(t1, t2); \