Esempio n. 1
0
 def test__checkFloat_overflow(self):
     g = GlyphCoordinates([(1, 1)])
     g.append((0x8000, 0))
     assert list(g.array) == [1.0, 1.0, 32768.0, 0.0]
Esempio n. 2
0
 def test__checkFloat_overflow(self):
     g = GlyphCoordinates([(1, 1)], typecode="h")
     g.append((0x8000, 0))
     assert g.array.typecode == "d"
     assert g.array == array.array("d", [1.0, 1.0, 32768.0, 0.0])
Esempio n. 3
0
 def test__checkFloat_overflow(self):
     g = GlyphCoordinates([(1, 1)], typecode="h")
     g.append((0x8000, 0))
     assert g.array.typecode == "d"
     assert g.array == array.array("d", [1.0, 1.0, 32768.0, 0.0])