commit 0c32845e5d837910a27a70eef9e3dcde5680a63d
parent 5cb2ef6a5ecab4767830fca3dcb584e032de4e70
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Wed, 27 Jul 2016 15:04:35 +0300
intrinsic_test: Tests for type conversion
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/intrinsic_test.cpp b/tests/intrinsic_test.cpp
@@ -154,6 +154,12 @@ TEST(intrin_round)
TEST(intrin_min_max)
{
+ CHECK(min(1, 2) == 1);
+ CHECK(min(1, 2u) == 1u);
+ CHECK(min(pack(1), 2) == pack(1));
+ CHECK(min(pack(1, 2, 3), 2) == pack(1, 2, 2));
+ CHECK(min(pack(1., 2., 3.), 2) == pack(1., 2., 2.));
+
testo::matrix(named("type") = float_types,
named("value") =
std::vector<std::pair<double, double>>{ { -100, +100 }, { infinity, 0.0 } },