def test_array_fill_repeat2(self): array_fill_repeat([1, 2, 3], 20)
def test_array_fill_repeat2(): with pytest.raises(ValueError): array_fill_repeat([1, 2, 3], 20)
def test_array_fill_repeat1(self): assert_equal(array_fill_repeat([1], 20).shape[0], 20) assert_equal(array_fill_repeat([1, 2], 20).shape[0], 20) assert_equal(array_fill_repeat(1, 20).shape[0], 20)
def test_array_fill_repeat1(): assert array_fill_repeat([1], 20).shape[0] == 20 assert array_fill_repeat([1, 2], 20).shape[0] == 20 assert array_fill_repeat(1, 20).shape[0] == 20