From: Anthony Geay Date: Tue, 19 Jan 2016 16:13:46 +0000 (+0100) Subject: A forgotten C++ test X-Git-Tag: V7_8_0a2~37^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=983134bc61b772ee8c48868eb076a3d09fcf9a84;p=tools%2Fmedcoupling.git A forgotten C++ test --- diff --git a/src/MEDLoader/Test/MEDLoaderTest.cxx b/src/MEDLoader/Test/MEDLoaderTest.cxx index 85f0add78..ad20f85a8 100644 --- a/src/MEDLoader/Test/MEDLoaderTest.cxx +++ b/src/MEDLoader/Test/MEDLoaderTest.cxx @@ -326,12 +326,15 @@ void MEDLoaderTest::testMultiMeshRW1() CPPUNIT_ASSERT(mesh2_2->isEqual(mesh2,1e-12)); mesh2_2->decrRef(); // - std::vector ret=MEDLoader::GetMeshFamiliesNamesOnGroup(fileName,"3DToto","3DMesh_1"); + std::vector ret(MEDLoader::GetMeshFamiliesNamesOnGroup(fileName,"3DToto","3DMesh_1")); + std::set s(ret.begin(),ret.end()); + std::set ref_s; + ref_s.insert("Family_-2"); + ref_s.insert("Family_-3"); + ref_s.insert("Family_-4"); + ref_s.insert("Family_-5"); CPPUNIT_ASSERT_EQUAL(4,(int)ret.size()); - CPPUNIT_ASSERT(ret[0]=="Family_-2"); - CPPUNIT_ASSERT(ret[1]=="Family_-3"); - CPPUNIT_ASSERT(ret[2]=="Family_-4"); - CPPUNIT_ASSERT(ret[3]=="Family_-5"); + CPPUNIT_ASSERT(s==ref_s); // std::vector ret1=MEDLoader::GetMeshGroupsNamesOnFamily(fileName,"3DToto","Family_-3"); CPPUNIT_ASSERT_EQUAL(2,(int)ret1.size());