Skip to content

Commit

Permalink
Return stray return.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Mar 31, 2020
1 parent dd8c594 commit 5cf111d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/testsuite/mapreduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function test_mapreduce(AT)
@test compare((A,R)->Base.mapreducedim!(identity, +, R, A), AT, rand(range, sz), zeros(ET, red))
@test compare((A,R)->Base.mapreducedim!(identity, *, R, A), AT, rand(range, sz), ones(ET, red))
@test compare((A,R)->Base.mapreducedim!(x->x+x, +, R, A), AT, rand(range, sz), zeros(ET, red))
return
end

# implicit singleton dimensions
Expand Down Expand Up @@ -144,7 +143,7 @@ function test_mapreduce(AT)
@test compare(x->mapreduce(+, +, x; dims = 2),
AT, rand(range, N, N), rand(range, N, N))
@test compare(x->mapreduce(+, +, x; dims = 2, init = _zero),
AT, rand(range, N, N). rand(range, N, N))
AT, rand(range, N, N), rand(range, N, N))
end
end
@testset "sum maximum minimum prod" begin
Expand Down

0 comments on commit 5cf111d

Please sign in to comment.