libmir / mir-algorithm

Compare a1749e9 ... +0 ... 08da19a

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

Learn more about Codecov Flags here.

Showing 1 of 1 files from the diff.

@@ -308,12 +308,7 @@
Loading
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,6 +326,15 @@
Loading
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

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
source/mir 0.01% 91.65%
Project Totals (78 files) 91.65%
Loading