Skip to content

Commit 9bab79c

Browse files
committed
Rearrange map tests
1 parent bf2c34f commit 9bab79c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/map.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
c2 = vmapnt(foo, a, b);
1313
@test c1 c2
1414
c2 = vmapntt(foo, a, b);
15-
sleep(1e-3) # non-temporal stores won't be automatically synced/coherant, so need to wait!
15+
c3 = similar(c2); @views vmapnt!(foo, c3[2:end], a[2:end], b[2:end]);
16+
@test @views c1[2:end] c3[2:end]
1617
@test c1 c2
17-
fill!(c2, NaN); @views vmapnt!(foo, c2[2:end], a[2:end], b[2:end]);
18-
@test @views c1[2:end] c2[2:end]
1918
fill!(c2, NaN); @views vmapntt!(foo, c2[2:end], a[2:end], b[2:end]);
2019
sleep(1e-3) # non-temporal stores won't be automatically synced/coherant, so need to wait!
2120
@test @views c1[2:end] c2[2:end]

0 commit comments

Comments
 (0)