示例#1
0
def test_copy():
    x = IntArray()
    for i in range(1000):
        iarr.append(x, i)

    y = IntArray()
    for i in range(1000):
        iarr.append(y, 1000 - i)

    iarr.copy(x, y)

    assert iarr.get(y, 0) == 0
示例#2
0
def test_size_increase():
    x = IntArray()
    for i in range(1000):
        iarr.append(x, 3)
示例#3
0
def test_append():
    x = IntArray()
    iarr.append(x, 3)