From 4db0bb75081dbfefbe6eed70ce00f3a57ae1463b Mon Sep 17 00:00:00 2001 From: Jakub Both Date: Tue, 27 Aug 2024 01:19:34 +0200 Subject: [PATCH] TST: Adapt tests for fixed bugs. --- tests/unit/test_fv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_fv.py b/tests/unit/test_fv.py index 3f5f8e29..c1d0d04d 100644 --- a/tests/unit/test_fv.py +++ b/tests/unit/test_fv.py @@ -101,7 +101,7 @@ def test_mass_face_2d(): # Check diagonal values assert len(np.unique(np.diag(mass))) == 1 - assert np.isclose(mass[0, 0], 0.5 * 0.125) + assert all([np.isclose(mass[i, i], 0.5 * 0.25) for i in range(20)]) def test_mass_face_3d(): @@ -116,7 +116,7 @@ def test_mass_face_3d(): # Check diagonal values assert len(np.unique(np.diag(mass))) == 1 - assert np.isclose(mass[0, 0], 0.5 * 0.25) + assert all([np.isclose(mass[i, i], 0.5 * 0.25 * 2) for i in range(60)]) def test_tangential_reconstruction_2d_1():