We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89a6add commit d218c36Copy full SHA for d218c36
array_api_tests/test_manipulation_functions.py
@@ -307,20 +307,20 @@ def test_repeat(x, kw, data):
307
shape=st.sampled_from([(1,), (size,)])),
308
label="repeats")
309
if isinstance(repeats, int):
310
- n_repitions = size*repeats
+ n_repititions = size*repeats
311
else:
312
if repeats.shape == (1,):
313
- n_repitions = size*int(repeats[0])
+ n_repititions = size*int(repeats[0])
314
315
- n_repitions = int(xp.sum(repeats))
+ n_repititions = int(xp.sum(repeats))
316
317
out = xp.repeat(x, repeats, **kw)
318
ph.assert_dtype("repeat", in_dtype=x.dtype, out_dtype=out.dtype)
319
if axis is None:
320
- expected_shape = (n_repitions,)
+ expected_shape = (n_repititions,)
321
322
expected_shape = list(shape)
323
- expected_shape[axis] = n_repitions
+ expected_shape[axis] = n_repititions
324
expected_shape = tuple(expected_shape)
325
ph.assert_shape("repeat", out_shape=out.shape, expected=expected_shape)
326
# TODO: values testing
0 commit comments