Skip to content

Commit 2d770d1

Browse files
committed
Revert "test"
This reverts commit e80d9b2.
1 parent e826472 commit 2d770d1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/runtests.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ end
13951395
n3 = rand(1:100)
13961396
vh = rand(Float32, n1, n2, n3)
13971397
v = array_from_host(vh)
1398-
1398+
13991399
s = AK.accumulate(+, v; init=Float32(0), dims=dims)
14001400
sh = Array(s)
14011401
@test all(sh .≈ accumulate(+, vh, init=Float32(0), dims=dims))
@@ -1530,7 +1530,7 @@ end
15301530
AK.searchsortedfirst(v, x, by=abs, lt=(>), rev=true, block_size=64)
15311531
AK.searchsortedlast!(ix, v, x, by=abs, lt=(>), rev=true, block_size=64)
15321532
AK.searchsortedlast(v, x, by=abs, lt=(>), rev=true, block_size=64)
1533-
1533+
15341534
vh = Array(v)
15351535
xh = Array(x)
15361536
ixh = similar(xh, Int32)
@@ -1771,9 +1771,7 @@ end
17711771
for _ in 1:100
17721772
num_elems = rand(1:100_000)
17731773
v = array_from_host(rand(Float32, num_elems))
1774-
gpucount = AK.count(x->x>0.5, v)
1775-
cpucount = count(x->x>0.5, Array(v))
1776-
@test gpucount == cpucount
1774+
@test AK.count(x->x>0.5, v) == count(x->x>0.5, Array(v))
17771775
end
17781776

17791777
for _ in 1:100
@@ -1811,7 +1809,7 @@ end
18111809

18121810

18131811
@testset "cumsum" begin
1814-
1812+
18151813
Random.seed!(0)
18161814

18171815
# Simple correctness tests
@@ -1860,7 +1858,7 @@ end
18601858

18611859

18621860
@testset "cumprod" begin
1863-
1861+
18641862
Random.seed!(0)
18651863

18661864
# Simple correctness tests

0 commit comments

Comments
 (0)