Add regression test for #10491

This commit is contained in:
Inkrementator 2025-03-17 21:50:30 +01:00
parent 63ce5c37c0
commit da127b18b8

View file

@ -420,6 +420,15 @@ if (isFloatingPoint!T)
assert(hypot(double.infinity, double.nan) == double.infinity);
}
// https://github.com/dlang/phobos/issues/10491
@safe pure nothrow unittest
{
import std.math : isClose;
enum small = 5.016556e-20f;
assert(hypot(small, 0).isClose(small));
}
@safe unittest
{
import std.math.operations : feqrel;