Skip to content

Commit

Permalink
Add test for Issue JuliaLang#17153 and PR JuliaLang#17154 (JuliaLang#…
Browse files Browse the repository at this point in the history
…17164)

* Add test for Issue JuliaLang#17153 and PR JuliaLang#17154

* Fix whitespaces
  • Loading branch information
ranjanan authored and mfasi committed Sep 5, 2016
1 parent 88568d0 commit ac5416d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,24 @@ let v = varm([1.0+2.0im], 0; corrected = false)
@test v 5
@test isa(v, Float64)
end

# Issue #17153 and PR #17154
let a = rand(10,10)
b = deepcopy(a)
x = median(a, 1)
@test b == a
x = median(a, 2)
@test b == a
x = mean(a, 1)
@test b == a
x = mean(a, 2)
@test b == a
x = var(a, 1)
@test b == a
x = var(a, 2)
@test b == a
x = std(a, 1)
@test b == a
x = std(a, 2)
@test b == a
end

0 comments on commit ac5416d

Please sign in to comment.