void MEDCouplingBasicsTest1::testBuildPartOfMySelfNode()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
- const int tab1[2]={5,7};
- MEDCouplingPointSet *subMeshSimple=mesh->buildPartOfMySelfNode(tab1,tab1+2,true);
+ const int tab1[4]={5,7,8,4};
+ MEDCouplingPointSet *subMeshSimple=mesh->buildPartOfMySelfNode(tab1,tab1+4,true);
MEDCouplingUMesh *subMesh=dynamic_cast<MEDCouplingUMesh *>(subMeshSimple);
CPPUNIT_ASSERT(subMesh);
CPPUNIT_ASSERT_EQUAL(1,(int)subMesh->getAllTypes().size());
def testBuildPartOfMySelfNode(self):
mesh=MEDCouplingDataForTest.build2DTargetMesh_1();
- tab1=[5,7]
- subMesh=mesh.buildPartOfMySelfNode(tab1[0:2],True);
+ tab1=[5,7,8,4]
+ subMesh=mesh.buildPartOfMySelfNode(tab1[0:4],True);
self.assertTrue(isinstance(subMesh,MEDCouplingUMesh))
self.assertEqual(1,len(subMesh.getAllTypes()));
self.assertEqual(NORM_QUAD4,subMesh.getAllTypes()[0]);