Author: rhs
Date: Tue Nov 11 11:15:32 2008
New Revision: 713117

URL: http://svn.apache.org/viewvc?rev=713117&view=rev
Log:
added codec tests for int64

Modified:
    incubator/qpid/trunk/qpid/python/tests/codec010.py

Modified: incubator/qpid/trunk/qpid/python/tests/codec010.py
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/tests/codec010.py?rev=713117&r1=713116&r2=713117&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/tests/codec010.py (original)
+++ incubator/qpid/trunk/qpid/python/tests/codec010.py Tue Nov 11 11:15:32 2008
@@ -47,6 +47,8 @@
 
   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 @@
     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())))


Reply via email to