File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ version(mir_bignum_test)
116116 static assert (" 3.518437208883201171875" .fromString! float == 0x1 .c25c26p+ 1 );
117117 static assert (" 3.518437208883201171875" .fromString! double == 0x1 .c25c268497684p+ 1 );
118118 static if (real .mant_dig >= 64 )
119- static assert (" 3.518437208883201171875" .fromString! real == 0xe .12e13424bb4232fp- 2L );
119+ static assert (" 3.518437208883201171875" .fromString! real == 0xe .12e13424bb4232fp- 2L );
120120
121121// Related DMD Issues:
122122// https://issues.dlang.org/show_bug.cgi?id=20951
@@ -125,6 +125,18 @@ version(mir_bignum_test)
125125// https://issues.dlang.org/show_bug.cgi?id=20967
126126}
127127
128+ // unittest
129+ // {
130+ // import std.stdio;
131+ // import mir.conv;
132+ // import mir.format;
133+ // text(double.min_normal).writeln;
134+ // text(double.min_normal * double.epsilon).writeln;
135+ // assert("2.2250738585072014e-308".fromString!double == double.min_normal);
136+ // assert("5e-324".fromString!double == double.min_normal * double.epsilon);
137+ // assert("2.5e-324".fromString!double == double.min_normal * double.epsilon);
138+ // }
139+
128140version (mir_bignum_test)
129141@safe pure unittest
130142{
You can’t perform that action at this time.
0 commit comments