Skip to content

Commit be1c1bf

Browse files
committed
Revert "test"
This reverts commit e80d9b2.
1 parent e80d9b2 commit be1c1bf

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
@@ -1251,7 +1251,7 @@ end
12511251
n3 = rand(1:100)
12521252
vh = rand(Float32, n1, n2, n3)
12531253
v = array_from_host(vh)
1254-
1254+
12551255
s = AK.accumulate(+, v; init=Float32(0), dims=dims)
12561256
sh = Array(s)
12571257
@test all(sh .≈ accumulate(+, vh, init=Float32(0), dims=dims))
@@ -1386,7 +1386,7 @@ end
13861386
AK.searchsortedfirst(v, x, by=abs, lt=(>), rev=true, block_size=64)
13871387
AK.searchsortedlast!(ix, v, x, by=abs, lt=(>), rev=true, block_size=64)
13881388
AK.searchsortedlast(v, x, by=abs, lt=(>), rev=true, block_size=64)
1389-
1389+
13901390
vh = Array(v)
13911391
xh = Array(x)
13921392
ixh = similar(xh, Int32)
@@ -1627,9 +1627,7 @@ end
16271627
for _ in 1:100
16281628
num_elems = rand(1:100_000)
16291629
v = array_from_host(rand(Float32, num_elems))
1630-
gpucount = AK.count(x->x>0.5, v)
1631-
cpucount = count(x->x>0.5, Array(v))
1632-
@test gpucount == cpucount
1630+
@test AK.count(x->x>0.5, v) == count(x->x>0.5, Array(v))
16331631
end
16341632

16351633
for _ in 1:100
@@ -1667,7 +1665,7 @@ end
16671665

16681666

16691667
@testset "cumsum" begin
1670-
1668+
16711669
Random.seed!(0)
16721670

16731671
# Simple correctness tests
@@ -1716,7 +1714,7 @@ end
17161714

17171715

17181716
@testset "cumprod" begin
1719-
1717+
17201718
Random.seed!(0)
17211719

17221720
# Simple correctness tests

0 commit comments

Comments
 (0)