You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests: Separate out test cases that rely on float support to float/ dir.
This commit is contained in:
@@ -13,6 +13,4 @@ print(array('i', bytearray(4)))
|
||||
|
||||
# convert from other arrays
|
||||
print(array('H', array('b', [1, 2])))
|
||||
print(array('f', array('h', [1, 2])))
|
||||
print(array('b', array('I', [1, 2])))
|
||||
print(array('d', array('f', [1, 2])))
|
||||
|
||||
@@ -11,4 +11,3 @@ print(bytearray([1, 2]))
|
||||
print(bytearray(array('b', [1, 2])))
|
||||
print(bytearray(array('h', [1, 2])))
|
||||
print(bytearray(array('I', [1, 2])))
|
||||
print(bytearray(array('f', [1, 2.3])))
|
||||
|
||||
@@ -11,4 +11,3 @@ print(bytes(bytearray(4)))
|
||||
print(bytes(array('b', [1, 2])))
|
||||
print(bytes(array('h', [1, 2])))
|
||||
print(bytes(array('I', [1, 2])))
|
||||
print(bytes(array('f', [1, 2.3])))
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# test construction of array from array with float type
|
||||
|
||||
from array import array
|
||||
|
||||
print(array('f', array('h', [1, 2])))
|
||||
print(array('d', array('f', [1, 2])))
|
||||
@@ -0,0 +1,5 @@
|
||||
# test construction of bytearray from array with float type
|
||||
|
||||
from array import array
|
||||
|
||||
print(bytearray(array('f', [1, 2.3])))
|
||||
@@ -0,0 +1,5 @@
|
||||
# test construction of bytearray from array with float type
|
||||
|
||||
from array import array
|
||||
|
||||
print(bytes(array('f', [1, 2.3])))
|
||||
Reference in New Issue
Block a user