Skip to content

Commit 3e5751f

Browse files
committed
add unittest
1 parent 59558be commit 3e5751f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/mir/math/stat.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ template mean(string summation)
7070
version(mir_test) @safe pure nothrow unittest
7171
{
7272
assert(mean([1.0, 2, 3]) == 2);
73+
assert(mean([1.0 + 3i, 2, 3]) == 2 + 1i);
7374
}
7475

7576
/++

0 commit comments

Comments
 (0)