From: Michael Orlitzky Date: Sun, 25 Oct 2009 05:14:56 +0000 (-0400) Subject: Updated the Geometry tests to use the new operator overloads. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c118c14032eee1c760bdb545bf1a5dd3006d4fc0;p=dead%2Fcensus-tools.git Updated the Geometry tests to use the new operator overloads. --- diff --git a/src/Tests/Unit/GeometryTest.py b/src/Tests/Unit/GeometryTest.py index 49fa113..d486757 100644 --- a/src/Tests/Unit/GeometryTest.py +++ b/src/Tests/Unit/GeometryTest.py @@ -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):