From b378f21f4c0259fdee6514ad168f4f5360b8fde9 Mon Sep 17 00:00:00 2001 From: kalsprite Date: Sat, 15 Aug 2026 20:24:41 -0700 Subject: [PATCH] update tests --- tests/internal/test_nan_comparison.odin | 97 +++++++ tests/internal/test_quat_cmplx.odin | 272 ++++++++++++++++++ .../internal/test_quaternion_comparison.odin | 130 --------- 3 files changed, 369 insertions(+), 130 deletions(-) create mode 100644 tests/internal/test_quat_cmplx.odin delete mode 100644 tests/internal/test_quaternion_comparison.odin diff --git a/tests/internal/test_nan_comparison.odin b/tests/internal/test_nan_comparison.odin index 5740be477..b47cc9dfc 100644 --- a/tests/internal/test_nan_comparison.odin +++ b/tests/internal/test_nan_comparison.odin @@ -89,3 +89,100 @@ compare_variable_nans_f64 :: proc(t: ^testing.T) { testing.expect_value(t, NaN > NaN, false) testing.expect_value(t, NaN >= NaN, false) } + +// A complex or quaternion compares componentwise, so a NaN in any one lane makes the whole +// comparison fail. The folded form used to disagree: `cmp_f64` is `(a>b)-(a