Skip to content

Commit aea9b61

Browse files
committed
TST: Fix test input shape
Test array had incorrect shape (was 3d when should be 2)
1 parent 6331872 commit aea9b61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

randomstate/tests/test_against_numpy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@ def compare_2_input(f1, f2, is_np=False, is_scalar=False):
3838
((np.array([a] * 10), b), {}),
3939
((a, np.array([b] * 10)), {}),
4040
((a, np.array([b] * 10)), {'size': 10}),
41-
((np.array([[[a]] * 100]), np.array([b] * 10)), {'size': (100, 10)}),
41+
((np.reshape(np.array([[a] * 100]), (100,1)), np.array([b] * 10)), {'size': (100, 10)}),
4242
((np.ones((7, 31), dtype=dtype) * a, np.array([b] * 31)), {'size': (7, 31)}),
4343
((np.ones((7, 31), dtype=dtype) * a, np.array([b] * 31)), {'size': (10, 7, 31)})]
4444

4545
if is_scalar:
4646
inputs = inputs[:3]
4747

4848
for i in inputs:
49+
print(i[0], i[1])
4950
v1 = f1(*i[0], **i[1])
5051
v2 = f2(*i[0], **i[1])
5152
assert_allclose(v1, v2)
53+
print('OK!'*20)
5254

5355

5456
def compare_3_input(f1, f2, is_np=False):

0 commit comments

Comments
 (0)