mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
signbit -> sign_bit in tests/core/math
This commit is contained in:
@@ -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):
|
case math.is_nan(a) && math.is_nan(b):
|
||||||
ok = true
|
ok = true
|
||||||
case a == b:
|
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)
|
testing.expectf(t, ok, "%.15g is not alike to %.15g", a, b, loc=loc)
|
||||||
return ok
|
return ok
|
||||||
|
|||||||
Reference in New Issue
Block a user