From 77331e0c2b2cb9065b0388b1f7c82e446eb1e26c Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 29 Feb 2012 13:44:07 +0000 Subject: [PATCH] More test on testTryToShareSameCoords method. --- src/MEDCoupling_Swig/MEDCouplingBasicsTest.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 -- 2.39.2