summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/array_construct.py
blob: f6a3a9dc9d41cd6e04c71e50f74848152036396d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# test construction of array from array with float type

try:
    from uarray import array
except ImportError:
    try:
        from array import array
    except ImportError:
        print("SKIP")
        raise SystemExit

print(array("f", array("h", [1, 2])))
print(array("d", array("f", [1, 2])))