diff options
author | Rafael H. Schloming <rhs@apache.org> | 2008-11-11 19:15:32 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2008-11-11 19:15:32 +0000 |
commit | c52f58558346b5d71af7c0c13f56b3a760b48986 (patch) | |
tree | 8ae0eb5154a8aee1cb50a32b2c53066f38755f03 /python/tests/codec010.py | |
parent | c25b28c67429ffeb3f6dd0d82320fda311792b62 (diff) | |
download | qpid-python-c52f58558346b5d71af7c0c13f56b3a760b48986.tar.gz |
added codec tests for int64
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713117 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests/codec010.py')
-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()))) |