Skip to content

Commit f5764ac

Browse files
ranjanantkelman
authored andcommitted
Add test for Issue #17153 and PR #17154 (#17164)
* Add test for Issue #17153 and PR #17154 * Fix whitespaces
1 parent b390d66 commit f5764ac

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/statistics.jl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,3 +341,24 @@ let v = varm([1.0+2.0im], 0; corrected = false)
341341
@test v 5
342342
@test isa(v, Float64)
343343
end
344+
345+
# Issue #17153 and PR #17154
346+
let a = rand(10,10)
347+
b = deepcopy(a)
348+
x = median(a, 1)
349+
@test b == a
350+
x = median(a, 2)
351+
@test b == a
352+
x = mean(a, 1)
353+
@test b == a
354+
x = mean(a, 2)
355+
@test b == a
356+
x = var(a, 1)
357+
@test b == a
358+
x = var(a, 2)
359+
@test b == a
360+
x = std(a, 1)
361+
@test b == a
362+
x = std(a, 2)
363+
@test b == a
364+
end

0 commit comments

Comments
 (0)