No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
a1749e9
... +0 ...
08da19a
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
308 | 308 | auto ret = decimal.fromStringImpl(str, key); |
|
309 | 309 | if (_expect(ret, true)) |
|
310 | 310 | { |
|
311 | - | switch(key) with(DecimalExponentKey) |
|
312 | - | { |
|
313 | - | case nan: value = decimal.coefficient.sign ? -T.nan : T.nan; break; |
|
314 | - | case infinity: value = decimal.coefficient.sign ? -T.infinity : T.infinity; break; |
|
315 | - | default: value = cast(T) decimal; break; |
|
316 | - | } |
|
311 | + | value = cast(T) decimal; |
|
317 | 312 | } |
|
318 | 313 | return ret; |
|
319 | 314 | } |
331 | 326 | assert("123".fromString(value) && value == 123); |
|
332 | 327 | } |
|
333 | 328 | ||
329 | + | /// |
|
330 | + | version(mir_test) |
|
331 | + | @safe pure nothrow @nogc unittest |
|
332 | + | { |
|
333 | + | double value = 0; |
|
334 | + | assert("+Inf".fromString(value) && value == double.infinity); |
|
335 | + | assert("-nan".fromString(value) && value != value); |
|
336 | + | } |
|
337 | + | ||
334 | 338 | /++ |
|
335 | 339 | Single character parsing utilities. |
|
336 | 340 |
Files | Coverage |
---|---|
source/mir | 0.01% 91.65% |
Project Totals (78 files) | 91.65% |
08da19a
a1749e9