diff options
-rw-r--r-- | python/tests/codec010.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tests/codec010.py b/python/tests/codec010.py index 5f9f853744..1912eac591 100644 --- a/python/tests/codec010.py +++ b/python/tests/codec010.py @@ -47,6 +47,8 @@ class CodecTest(TestCase): def testMapLong(self): self.check("map", {"long": 2**32}) + self.check("map", {"long": 1 << 34}) + self.check("map", {"long": -(1 << 34)}) def testMapTimestamp(self): decoded = self.check("map", {"timestamp": timestamp(0)}) @@ -107,6 +109,12 @@ class CodecTest(TestCase): self.check("int16", 3) self.check("int16", -3) + def testInt64(self): + self.check("int64", 3) + self.check("int64", -3) + self.check("int64", 1<<34) + self.check("int64", -(1<<34)) + def testDatetime(self): self.check("datetime", timestamp(0)) self.check("datetime", timestamp(long(time.time()))) |