[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/kp992/lpython/main/integration_tests/array_expr_08.py [Back]  [Original]

from lpython import i1
from numpy import bool_, array

def g():
    a1: i1[4] = array([0, -127, 0, 111], dtype=bool_)

    print(a1)

    assert not a1[0]
    assert a1[1]
    assert not a1[2]
    assert a1[3]

g()

Web Proxy Viewer  |  New URL  |  Original Page