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