Skip to content

Commit 231ae8e

Browse files
committed
Relaxes tolerance for a test
Modifies a test assertion to use `isapprox` with a specified tolerance. This change addresses potential floating-point precision issues, ensuring the test remains robust across different environments.
1 parent a721904 commit 231ae8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/TestConstitutiveModels/PhysicalModelTests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,8 @@ end
957957

958958
@test Ψ(F(∇u), J_(F(∇u))) == 0.10922164405292278
959959
@test norm(∂Ψu(F(∇u), J_(F(∇u)))) == 52.980951554554586
960-
@test norm(∂Ψuu(F(∇u), J_(F(∇u)))) == 18172.85461140912
960+
@test isapprox(norm(∂Ψuu(F(∇u), J_(F(∇u)))), 18172.854611409115, atol=1e-10)
961+
961962
test_equilibrium_at_rest_2D(model)
962963
end
963964

0 commit comments

Comments
 (0)