Skip to content

Commit

Permalink
ran pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
luitjansl committed Feb 9, 2024
1 parent 60fb794 commit 06c9940
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_ugrid2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,12 +1378,13 @@ def test_equals():
grid_copy.attrs["attr"] = "something_else"
assert not grid.equals(grid_copy)


def test_equals_connectivity_mismatch():
grid = grid2d()
grid_copy = grid2d()
# perturbate
# perturbate
copy_dataset = grid_copy.to_dataset()
copy_dataset["mesh2d_face_nodes"].to_numpy()[2,1] += 1
copy_dataset["mesh2d_face_nodes"].to_numpy()[3,1] -= 1
copy_dataset["mesh2d_face_nodes"].to_numpy()[2, 1] += 1
copy_dataset["mesh2d_face_nodes"].to_numpy()[3, 1] -= 1
grid_copy = type(grid).from_dataset(copy_dataset)
assert not grid.equals(grid_copy)
assert not grid.equals(grid_copy)

0 comments on commit 06c9940

Please sign in to comment.