Example #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
Example #2
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
Example #3
0
def test_size_increase():
    x = IntArray()
    for i in range(1000):
        iarr.append(x, 3)
Example #4
0
def test_append():
    x = IntArray()
    iarr.append(x, 3)
Example #5
0
def test_append():
    x = IntArray()
    iarr.append(x, 3)
Example #6
0
def test_size_increase():
    x = IntArray()
    for i in range(1000):
        iarr.append(x, 3)