]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
More test on testTryToShareSameCoords method.
authorageay <ageay>
Wed, 29 Feb 2012 13:44:07 +0000 (13:44 +0000)
committerageay <ageay>
Wed, 29 Feb 2012 13:44:07 +0000 (13:44 +0000)
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py

index 6db80208497768db014cdea4cd6196e44ba828d5..9005631de3830569dd413ac51cdfed48559911ab 100644 (file)
@@ -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