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