From c118c14032eee1c760bdb545bf1a5dd3006d4fc0 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 25 Oct 2009 01:14:56 -0400 Subject: [PATCH] Updated the Geometry tests to use the new operator overloads. --- src/Tests/Unit/GeometryTest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.44.2