示例#1
0
 def test_array_fill_repeat2(self):
     array_fill_repeat([1, 2, 3], 20)
示例#2
0
def test_array_fill_repeat2():
    with pytest.raises(ValueError):
        array_fill_repeat([1, 2, 3], 20)
示例#3
0
 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)
示例#4
0
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