From 7f194fcebd3f271abdc0c13903533f156256f291 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 11 Nov 2026 07:44:43 +0300 Subject: [PATCH 1/3] tests: allow libm rounding in atanh and log1p checks --- tests/core/math_test.v | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/core/math_test.v b/tests/core/math_test.v index 64114250..67e9e599 100644 --- a/tests/core/math_test.v +++ b/tests/core/math_test.v @@ -197,7 +197,8 @@ fn test_atanh() { a := vtl.from_1d([-0.5, 0, 0.5])! result := a.atanh() expected := vtl.from_1d([-0.5493061443340548, 0.0, 0.5493061443340548])! - assert result.array_equal(expected) + // Platform libm implementations can differ by a few ULPs. + assert result.allclose(expected, rtol: 0.0, atol: 1e-15)! } fn test_cbrt() { @@ -348,7 +349,8 @@ fn test_log1p() { a := vtl.from_1d([1.0, 2, 3])! result := a.log1p() expected := vtl.from_1d([0.6931471805599453, 1.0986122886681096, 1.3862943611198906])! - assert result.array_equal(expected) + // Platform libm implementations can differ by a few ULPs. + assert result.allclose(expected, rtol: 0.0, atol: 1e-15)! } fn test_log2() { From 930ac9528b16602262419fc3d454588c533d5df0 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 11 Nov 2026 07:53:41 +0300 Subject: [PATCH 2/3] tests: preserve exact tensor shape checks with float tolerance --- tests/core/math_test.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/core/math_test.v b/tests/core/math_test.v index 67e9e599..0fb31f4b 100644 --- a/tests/core/math_test.v +++ b/tests/core/math_test.v @@ -197,6 +197,7 @@ fn test_atanh() { a := vtl.from_1d([-0.5, 0, 0.5])! result := a.atanh() expected := vtl.from_1d([-0.5493061443340548, 0.0, 0.5493061443340548])! + assert result.shape == expected.shape // Platform libm implementations can differ by a few ULPs. assert result.allclose(expected, rtol: 0.0, atol: 1e-15)! } @@ -349,6 +350,7 @@ fn test_log1p() { a := vtl.from_1d([1.0, 2, 3])! result := a.log1p() expected := vtl.from_1d([0.6931471805599453, 1.0986122886681096, 1.3862943611198906])! + assert result.shape == expected.shape // Platform libm implementations can differ by a few ULPs. assert result.allclose(expected, rtol: 0.0, atol: 1e-15)! } From 91a14e75a338154992e59bef6206d6b8fe6cb0de Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 11 Nov 2026 07:59:01 +0300 Subject: [PATCH 3/3] ci: replace retired macOS 14 runner with macOS 15 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f93286bd..7051a9b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,7 @@ jobs: - os: ubuntu-24.04 flags: '--prod' backend: pure-v - - os: macos-14 + - os: macos-15 flags: '' backend: pure-v fail-fast: false