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