]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Updated the Geometry tests to use the new operator overloads.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 25 Oct 2009 05:14:56 +0000 (01:14 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 25 Oct 2009 05:14:56 +0000 (01:14 -0400)
src/Tests/Unit/GeometryTest.py

index 49fa1139c4185020d888f9946eb6b68e8dc4f6dc..d486757f10995e6fe5450ae172fa8458d0196d1d 100644 (file)
@@ -13,12 +13,12 @@ class TwoVectorTest(unittest.TestCase):
         """        
         v1 = TwoVector(0,0)
         v2 = TwoVector(100, -19)
-        self.assertTrue(v2 == v1.add(v2))
+        self.assertTrue(v2 == (v1+v2))
 
         v1 = TwoVector(23, -10)
         v2 = TwoVector(-23, 10)
         zero = TwoVector(0, 0)
-        self.assertTrue(v1.add(v2) == zero)
+        self.assertTrue((v1+v2) == zero)
 
         
     def testDotProduct(self):