tests: Separate out test cases that rely on float support to float/ dir.
This commit is contained in:
parent
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])))
|
||||
|
6
tests/float/array_construct.py
Normal file
6
tests/float/array_construct.py
Normal file
@ -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])))
|
5
tests/float/bytearray_construct.py
Normal file
5
tests/float/bytearray_construct.py
Normal file
@ -0,0 +1,5 @@
|
||||
# test construction of bytearray from array with float type
|
||||
|
||||
from array import array
|
||||
|
||||
print(bytearray(array('f', [1, 2.3])))
|
5
tests/float/bytes_construct.py
Normal file
5
tests/float/bytes_construct.py
Normal file
@ -0,0 +1,5 @@
|
||||
# test construction of bytearray from array with float type
|
||||
|
||||
from array import array
|
||||
|
||||
print(bytes(array('f', [1, 2.3])))
|
Loading…
x
Reference in New Issue
Block a user