commit c7b9a4c92dfce3927afcce61ee86a354f824e9f3
parent 66964955b95d1ffe900685b12f7aadd873855202
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Wed, 10 Aug 2016 09:09:38 +0300
intrinsic_test: use fbase
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/intrinsic_test.cpp b/tests/intrinsic_test.cpp
@@ -162,9 +162,9 @@ TEST(intrin_sqrt)
testo::assert_is_same<decltype(kfr::intrinsics::sqrt(9)), fbase>();
testo::assert_is_same<decltype(kfr::sqrt(make_vector(9))), vec<fbase, 1>>();
testo::assert_is_same<decltype(kfr::sqrt(make_vector(9, 25))), vec<fbase, 2>>();
- CHECK(kfr::sqrt(9) == 3.0);
- CHECK(kfr::sqrt(2) == 1.4142135623730950488);
- CHECK(kfr::sqrt(-9) == qnan);
+ CHECK(kfr::sqrt(9) == fbase(3.0));
+ CHECK(kfr::sqrt(2) == fbase(1.4142135623730950488));
+ CHECK(kfr::sqrt(-9) == fbase(qnan));
CHECK(kfr::sqrt(make_vector(9)) == make_vector<fbase>(3.0));
CHECK(kfr::sqrt(make_vector(-9)) == make_vector<fbase>(qnan));
testo::matrix(named("type") = float_types, named("value") = std::vector<int>{ 0, 2, 65536 },