Skip to content

Commit d46775b

Browse files
committed
fix test
1 parent 9ccb9fe commit d46775b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lapy/utils/tests/test_tria_mesh.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,12 +915,14 @@ def test_level_path():
915915
"""
916916
Test level_path function for single path extraction with various options.
917917
"""
918-
# Create a simple mesh with a clear level curve
918+
# Create a simple mesh where level=0.5 crosses edge interiors cleanly.
919+
# Vertices 0,1 have z=0 and vertices 2,3 have z=1, so the level set at
920+
# z=0.5 intersects two edges (not any vertex) — one per triangle.
919921
vertices = np.array([
920922
[0.0, 0.0, 0.0],
921-
[1.0, 0.0, 0.5],
923+
[1.0, 0.0, 0.0],
922924
[1.0, 1.0, 1.0],
923-
[0.0, 1.0, 0.5],
925+
[0.0, 1.0, 1.0],
924926
])
925927
triangles = np.array([
926928
[0, 1, 2],

0 commit comments

Comments
 (0)