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 diff --git a/tests/core/math_test.v b/tests/core/math_test.v index 64114250..0fb31f4b 100644 --- a/tests/core/math_test.v +++ b/tests/core/math_test.v @@ -197,7 +197,9 @@ 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) + assert result.shape == expected.shape + // Platform libm implementations can differ by a few ULPs. + assert result.allclose(expected, rtol: 0.0, atol: 1e-15)! } fn test_cbrt() { @@ -348,7 +350,9 @@ 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) + assert result.shape == expected.shape + // Platform libm implementations can differ by a few ULPs. + assert result.allclose(expected, rtol: 0.0, atol: 1e-15)! } fn test_log2() {