mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
tests: Make float and framebuf tests skip or run on big-endian archs.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# test construction of bytearray from array with float type
|
||||
# test construction of bytes from array with float type
|
||||
|
||||
try:
|
||||
from uarray import array
|
||||
@@ -22,4 +22,4 @@ def test(a):
|
||||
test(array("f"))
|
||||
test(array("d"))
|
||||
|
||||
print("{:.4f}".format(array("f", b"\xcc\xcc\xcc=")[0]))
|
||||
print("{:.4f}".format(array("f", bytes(array("I", [0x3DCCCCCC])))[0]))
|
||||
|
||||
Reference in New Issue
Block a user