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

Commit

Permalink
Merge pull request #230 from JuliaStats/anj/unbreak05
Browse files Browse the repository at this point in the history
Fix reducedim tests for backports to 0.5
  • Loading branch information
andreasnoack committed Jan 6, 2017
2 parents 74476cf + 4f5d706 commit a7e2169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/reducedim.jl
Expand Up @@ -127,10 +127,10 @@ for Areduc in (DataArray(rand(3, 4, 5, 6)),
(1, 2, 3), (1, 3, 4), (2, 3, 4), (1, 2, 3, 4)]
# println("region = $region, skipna = $skipna")

if VERSION < v"0.6.0-dev.1121"
if VERSION < v"0.5.1-pre+19"
outputs = Any[DataArray(fill(NaN, Base.reduced_dims(size(Areduc), region)))]
else
outputs = Any[DataArray(fill(NaN, length.(Base.reduced_indices(indices(Areduc), region))))]
outputs = Any[DataArray(fill(NaN, map(length, Base.reduced_indices(indices(Areduc), region))))]
end
has_na = anyna(Areduc)
if has_na && !skipna
Expand Down

0 comments on commit a7e2169

Please sign in to comment.