From c52f58558346b5d71af7c0c13f56b3a760b48986 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 11 Nov 2008 19:15:32 +0000 Subject: added codec tests for int64 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713117 13f79535-47bb-0310-9956-ffa450edef68 --- python/tests/codec010.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/tests/codec010.py') 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()))) -- cgit v1.2.1