Ejemplo n.º 1
0
def test_min():
    x = IntArray()
    iarr.from_list(x, [1, 5, -2, 9, 12])
    assert iarr.min(x) == -2
    assert iarr.max(x) == 12
Ejemplo n.º 2
0
def test_min():
    x = IntArray()
    iarr.from_list(x, [1, 5, -2, 9, 12])
    assert iarr.min(x) == -2
    assert iarr.max(x) == 12
Ejemplo n.º 3
0
def test_from_list():
    x = IntArray()
    iarr.from_list(x, range(15))
    assert iarr.get(x, 0) == 0
    assert iarr.get(x, 14) == 14
Ejemplo n.º 4
0
def test_from_list():
    x = IntArray()
    iarr.from_list(x, range(15))
    assert iarr.get(x, 0) == 0
    assert iarr.get(x, 14) == 14