Skip to content

Commit 39e71e2

Browse files
committed
adjust findmin test
1 parent 680a270 commit 39e71e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/ifelsemasks.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,13 +494,15 @@ T = Float32
494494
@show T, @__LINE__
495495
if T <: Integer
496496
a = rand(-T(100):T(100), N); b = rand(-T(100):T(100), N);
497+
mv, mi = findminturbo(a)
498+
@test (mv,mi) == findminturbo_u2(a)
499+
@test a[mi] == minimum(a)
497500
else
498501
a = rand(T, N); b = rand(T, N);
502+
@test findmin(a) == findminturbo(a) == findminturbo_u2(a)
499503
end;
500504
c1 = similar(a); c2 = similar(a);
501505

502-
@test findmin(a) == findminturbo(a) == findminturbo_u2(a)
503-
504506
promote_bool_store!(c1, a, b);
505507
promote_bool_storeavx!(c2, a, b);
506508
@test c1 == c2

0 commit comments

Comments
 (0)