From 951439fc85a636bac5b250367dec030ba567f34f Mon Sep 17 00:00:00 2001 From: abn Date: Tue, 19 Jan 2016 15:00:38 +0100 Subject: [PATCH] Minor test fix for medfile-3.2 --- src/MEDLoader/Test/MEDLoaderTest.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/MEDLoader/Test/MEDLoaderTest.cxx b/src/MEDLoader/Test/MEDLoaderTest.cxx index 85f0add78..9fba11bc2 100644 --- a/src/MEDLoader/Test/MEDLoaderTest.cxx +++ b/src/MEDLoader/Test/MEDLoaderTest.cxx @@ -327,11 +327,15 @@ void MEDLoaderTest::testMultiMeshRW1() mesh2_2->decrRef(); // std::vector ret=MEDLoader::GetMeshFamiliesNamesOnGroup(fileName,"3DToto","3DMesh_1"); + std::set s; + for(int ii=0; ii < ret.size(); ii++) s.insert(ret[ii]); + 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()); -- 2.39.2