Skip to content

Commit c6100f8

Browse files
Geod24John-Colvin
authored andcommitted
Trivial: Make an assert error message readable
Before naiveAnd and fastAns were not separated, leading to results such as 10.864943 instead of '1 - 0.864943'.
1 parent 9b3e125 commit c6100f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/dstats/tests.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2950,7 +2950,7 @@ unittest {
29502950
c[1][1] = uniform(0U, 51U);
29512951
double naiveAns = naive(c);
29522952
double fastAns = fisherExact(c);
2953-
assert(approxEqual(naiveAns, fastAns), text(c, naiveAns, fastAns));
2953+
assert(approxEqual(naiveAns, fastAns), text(c, " - ", naiveAns, " - ", fastAns));
29542954
}
29552955

29562956
auto res = fisherExact([[19000, 80000], [20000, 90000]]);

0 commit comments

Comments
 (0)