2021-05-19 20:02:57 -04:00
|
|
|
# test construction of bytes from array with float type
|
2015-01-08 10:41:37 -05:00
|
|
|
|
2017-04-02 17:17:43 -04:00
|
|
|
try:
|
2019-10-22 02:33:23 -04:00
|
|
|
from uarray import array
|
2017-04-02 17:17:43 -04:00
|
|
|
except ImportError:
|
2019-10-22 02:33:23 -04:00
|
|
|
try:
|
|
|
|
from array import array
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2015-01-08 10:41:37 -05:00
|
|
|
|
2021-06-18 00:16:07 -04:00
|
|
|
print(bytes(array("f", [1, 2.5])))
|