Skip to content

Commit 2ffbdcc

Browse files
committed
Added some more tests for the modifications
1 parent 03e99f4 commit 2ffbdcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/scalarstats.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,13 @@ z2 = [8. 2. 3. 1.; 24. 10. -1. -1.; 20. 12. 1. -2.]
163163
@test span(skipmissing([1, missing, 5, missing])) == 1:5
164164

165165
@test variation([1:5;]) 0.527046276694730
166+
@test variation([1:5;]; corrected=false) 0.471404520791032
166167
@test variation(skipmissing([missing; 1:5; missing])) 0.527046276694730
167168
@test isnan(variation(1))
168-
@test variation(1; corrected = false) == 0
169+
@test variation(1; corrected=false) == 0
170+
# Possibly deprecated
171+
@test variation([1:5;],4) 0.4841229182759271
172+
@test variation([1:5;],4; corrected=false) 0.4330127018922193
169173

170174
@test @inferred(sem([1:5;])) 0.707106781186548
171175
@test @inferred(sem(skipmissing([missing; 1:5; missing]))) 0.707106781186548

0 commit comments

Comments
 (0)