Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jan 14, 2017
1 parent 81629b8 commit 5393a22
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions test/reduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ module TestReduce
@test isequal(mapreduce(f, +, X), Nullable(mapreduce(f, +, X.values)))
@test isequal(mapreduce(f, +, Y), Nullable{Float64}())
v = mapreduce(f, +, Y, skipnull=true)
@test_approx_eq v.value mapreduce(f, +, B)
@test v.value mapreduce(f, +, B)
@test !isnull(v)

@test isequal(reduce(+, X), Nullable(reduce(+, X.values)))
@test isequal(reduce(+, Y), Nullable{Float64}())
v = reduce(+, Y, skipnull=true)
@test_approx_eq v.value reduce(+, B)
@test v.value reduce(+, B)
@test !isnull(v)

for method in (
Expand All @@ -51,17 +51,6 @@ module TestReduce
@test !isnull(v)
end

for method in (
sumabs,
sumabs2,
)
@test isequal(method(X), Nullable(method(A)))
@test isequal(method(Y), Nullable{Float64}())
v = method(Y, skipnull=true)
@test_approx_eq v.value method(B)
@test !isnull(v)
end

H = rand(Bool, N)
G = H[find(x->!x, M)]
U = NullableArray(H)
Expand Down

0 comments on commit 5393a22

Please sign in to comment.