Skip to content

Commit 4b981fb

Browse files
committed
Adding proper checks to tests
1 parent 622d0a9 commit 4b981fb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

test/binary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ BINARY_TESTS_FLOAT(mul)
164164
BINARY_TESTS_NEAR(float, float, float, div, 1e-3) // FIXME
165165
BINARY_TESTS_FLOAT(min)
166166
BINARY_TESTS_FLOAT(max)
167-
BINARY_TESTS_FLOAT(mod)
167+
BINARY_TESTS_NEAR(float, float, float, mod, 1e-5) // FIXME
168168

169169
BINARY_TESTS_DOUBLE(add)
170170
BINARY_TESTS_DOUBLE(sub)

test/reduce.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ TEST(Reuce, Test_Count_Global)
271271

272272
TEST(Reuce, Test_min_Global)
273273
{
274+
if (noDoubleTests<double>()) return;
275+
274276
int num = 10000;
275277
af::array a = af::randu(num, 1, f64);
276278
double res = af::min<double>(a);

0 commit comments

Comments
 (0)