Add type for general fixed-point numbers

This commit is contained in:
joo committed 2020-09-01 00:37:48 +02:00
1 parent 3c84c2a429
commit e434497dc7
3 files changed
+28 -14

No files matched your search

+6
View File
@@ -82,6 +82,12 @@ class LegacyPacketNamesTest(unittest.TestCase):
serverbound.play.get_packets)
class LegacyTypesTest(unittest.TestCase):
def test_legacy_types(self):
self.assertIsInstance(types.FixedPointInteger, types.FixedPoint)
self.assertEqual(types.FixedPointInteger.denominator, 32)
class ClassMemberAliasesTest(unittest.TestCase):
def test_alias_values(self):
self.assertEqual(serverbound.play.AnimationPacket.HAND_MAIN,