kopia lustrzana https://github.com/micropython/micropython
tests: Separate out test cases that rely on float support to float/ dir.
rodzic
115187f7ce
commit
19b3fea6a8
|
@ -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])))
|
Ładowanie…
Reference in New Issue