Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrimaz committed Nov 30, 2023
1 parent 03facf5 commit 8fb522b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/model/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ def test_parse_int(self) -> None:
self.assertEqual(8, model.datatypes.from_xsd("8", model.datatypes.Long))
self.assertEqual(9, model.datatypes.from_xsd("9", model.datatypes.Int))
self.assertEqual(10, model.datatypes.from_xsd("10", model.datatypes.Short))
self.assertEqual(-123456789012345678901234567890, model.datatypes.from_xsd("-123456789012345678901234567890", model.datatypes.Integer))
self.assertEqual(-123456789012345678901234567890,
model.datatypes.from_xsd("-123456789012345678901234567890", model.datatypes.Integer))
self.assertEqual(2147483647, model.datatypes.from_xsd("2147483647", model.datatypes.Int))
self.assertEqual(-2147483648, model.datatypes.from_xsd("-2147483648", model.datatypes.Int))
self.assertEqual(-32768, model.datatypes.from_xsd("-32768", model.datatypes.Short))
self.assertEqual(-128, model.datatypes.from_xsd("-128", model.datatypes.Byte))
self.assertEqual(-9223372036854775808, model.datatypes.from_xsd("-9223372036854775808", model.datatypes.Long))
self.assertEqual(-9223372036854775808,
model.datatypes.from_xsd("-9223372036854775808", model.datatypes.Long))

def test_serialize_int(self) -> None:
self.assertEqual("5", model.datatypes.xsd_repr(model.datatypes.Integer(5)))
Expand Down

0 comments on commit 8fb522b

Please sign in to comment.