Skip to content

Commit cfe1b6d

Browse files
authored
Merge pull request #370 from JuliaGPU/tb/rand
Fix an often-failing test.
2 parents 7d75929 + d8113a8 commit cfe1b6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/testsuite/random.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@
2222
@test all(Array(A) .== Array(B))
2323
end
2424

25-
A = AT{Bool}(undef, 5)
25+
A = AT{Bool}(undef, 1024)
26+
fill!(A, false)
2627
rand!(A)
2728
@test true in Array(A)
29+
fill!(A, true)
30+
rand!(A)
2831
@test false in Array(A)
2932
end
3033

0 commit comments

Comments
 (0)