Skip to content

Commit

Permalink
#3526 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Apr 10, 2024
1 parent 043fcbe commit 8bc31d8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,14 @@ def test_upwind_downwind(self):
self.assertEqual(disc_downwind.size, nodes.size + 1)

y_test = 2 * np.ones_like(nodes)
print(disc_upwind.evaluate(y=y_test))
np.testing.assert_array_equal(
disc_upwind.evaluate(y=y_test),
np.concatenate([np.array([5, 0.5]), 2 * np.ones(n - 1)])[:, np.newaxis],
np.concatenate([np.array([8]), 2 * np.ones(n)])[:, np.newaxis],
)
np.testing.assert_array_equal(
disc_downwind.evaluate(y=y_test),
np.concatenate([2 * np.ones(n - 1), np.array([1.5, 3])])[:, np.newaxis],
np.concatenate([2 * np.ones(n), np.array([4])])[:, np.newaxis],
)

# Remove boundary conditions and check error is raised
Expand Down

0 comments on commit 8bc31d8

Please sign in to comment.