Skip to content

Commit 415f5cc

Browse files
committed
add commented test
1 parent 47c16e2 commit 415f5cc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

source/mir/parse.d

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
128140
version(mir_bignum_test)
129141
@safe pure unittest
130142
{

0 commit comments

Comments
 (0)