Skip to content

Commit 58c0e72

Browse files
committed
FIX: Faster test
1 parent b0c5ca0 commit 58c0e72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

surfer/tests/test_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ def test_surface():
5151
assert_array_almost_equal(x + 2, x_)
5252

5353
# normals
54-
nn = _slow_compute_normals(surface.coords, surface.faces)
55-
assert_array_almost_equal(nn, surface.nn)
54+
nn = _slow_compute_normals(surface.coords, surface.faces[:100])
55+
nn_fast = utils._compute_normals(surface.coords, surface.faces[:100])
56+
assert_array_almost_equal(nn, nn_fast)

0 commit comments

Comments
 (0)