From: ageay Date: Wed, 29 Feb 2012 13:44:07 +0000 (+0000) Subject: More test on testTryToShareSameCoords method. X-Git-Tag: V6_main_FINAL~810 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=77331e0c2b2cb9065b0388b1f7c82e446eb1e26c;p=tools%2Fmedcoupling.git More test on testTryToShareSameCoords method. --- diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index 6db802084..9005631de 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -1885,27 +1885,27 @@ class MEDCouplingBasicsTest(unittest.TestCase): def testTryToShareSameCoords(self): m1=MEDCouplingDataForTest.build2DTargetMesh_1(); m2=MEDCouplingDataForTest.build2DTargetMesh_1(); - #self.assertEqual(m1.getCoords()!=m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()!=m2.getCoords().getHiddenCppPointer()); m1.tryToShareSameCoords(m2,1e-12); - #self.assertEqual(m1.getCoords()==m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()==m2.getCoords().getHiddenCppPointer()); m1.tryToShareSameCoords(m2,1e-12); - #self.assertEqual(m1.getCoords()==m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()==m2.getCoords().getHiddenCppPointer()); m2.tryToShareSameCoords(m1,1e-12); - #self.assertEqual(m1.getCoords()==m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()==m2.getCoords().getHiddenCppPointer()); # m1=MEDCouplingDataForTest.build2DTargetMesh_1(); m2=MEDCouplingDataForTest.build2DTargetMesh_2(); - #self.assertEqual(m1.getCoords()!=m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()!=m2.getCoords().getHiddenCppPointer()); m1.tryToShareSameCoords(m2,1e-12); - #self.assertEqual(m1.getCoords()==m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()==m2.getCoords().getHiddenCppPointer()); m1.tryToShareSameCoords(m2,1e-12); - #self.assertEqual(m1.getCoords()==m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()==m2.getCoords().getHiddenCppPointer()); m2.tryToShareSameCoords(m1,1e-12); - #self.assertEqual(m1.getCoords()==m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()==m2.getCoords().getHiddenCppPointer()); # m1=MEDCouplingDataForTest.build2DTargetMesh_1(); m2=MEDCouplingDataForTest.build2DSourceMesh_1(); - #self.assertEqual(m1.getCoords()!=m2.getCoords()); + self.assertTrue(m1.getCoords().getHiddenCppPointer()!=m2.getCoords().getHiddenCppPointer()); self.assertRaises(InterpKernelException,m1.tryToShareSameCoords,m2,1e-12) pass