signbit -> sign_bit in tests/core/math

This commit is contained in:
Jeroen van Rijn
2025-04-15 16:20:49 +02:00
parent ddedddc16d
commit 678fa897f5

View File

@@ -1012,7 +1012,7 @@ alike :: proc(t: ^testing.T, a, b: f64, loc := #caller_location) -> bool {
case math.is_nan(a) && math.is_nan(b):
ok = true
case a == b:
ok = math.signbit(a) == math.signbit(b)
ok = math.sign_bit(a) == math.sign_bit(b)
}
testing.expectf(t, ok, "%.15g is not alike to %.15g", a, b, loc=loc)
return ok