tests: Separate out test cases that rely on float support to float/ dir.

pull/1051/head
Damien George 2015-01-08 15:41:37 +00:00
rodzic 115187f7ce
commit 19b3fea6a8
6 zmienionych plików z 16 dodań i 4 usunięć

Wyświetl plik

@ -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])))

Wyświetl plik

@ -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])))

Wyświetl plik

@ -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])))

Wyświetl plik

@ -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])))

Wyświetl plik

@ -0,0 +1,5 @@
# test construction of bytearray from array with float type
from array import array
print(bytearray(array('f', [1, 2.3])))

Wyświetl plik

@ -0,0 +1,5 @@
# test construction of bytearray from array with float type
from array import array
print(bytes(array('f', [1, 2.3])))