Skip to content

Commit ea4fe89

Browse files
committed
[#116] Fixed unit tests 2
1 parent 037207a commit ea4fe89

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

bsplines2d/tests/test_input.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,11 @@ def _select_mesh_elements(bsplines, nd=None, kind=None):
511511
return_neighbours=comb[4],
512512
crop=comb[0],
513513
)
514-
assert isinstance(out, tuple) and len(out) == 2
514+
assert (
515+
(isinstance(out, tuple) and len(out) == 2)
516+
or (isinstance(out, np.ndarray))
517+
)
518+
515519
return
516520

517521

@@ -602,7 +606,10 @@ def _select_bsplines(bs, nd=None, kind=None):
602606
return_knots=comb[2],
603607
crop=comb[3],
604608
)
605-
assert isinstance(out, tuple)
609+
assert (
610+
(isinstance(out, tuple) and len(out) in [2, 3])
611+
or (isinstance(out, np.ndarray))
612+
)
606613

607614
return
608615

0 commit comments

Comments
 (0)