From: srn Date: Mon, 18 Dec 2006 08:56:21 +0000 (+0000) Subject: Updated test cases X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=197ba161f989ad14b4844b577ed16bf84638980b;p=modules%2Fkernel.git Updated test cases --- diff --git a/src/SALOMEDS/Test/SALOMEDSTest_AttributeTableOfInteger.cxx b/src/SALOMEDS/Test/SALOMEDSTest_AttributeTableOfInteger.cxx index e633bc5b3..7545fb720 100755 --- a/src/SALOMEDS/Test/SALOMEDSTest_AttributeTableOfInteger.cxx +++ b/src/SALOMEDS/Test/SALOMEDSTest_AttributeTableOfInteger.cxx @@ -49,7 +49,7 @@ void SALOMEDSTest::testAttributeTableOfInteger() //Check the attribute creation CPPUNIT_ASSERT(_attr); -/* + //Check method SetTitle _attr->SetTitle("Table_1"); @@ -86,10 +86,10 @@ void SALOMEDSTest::testAttributeTableOfInteger() vector rs = _attr->GetRowSetIndices(1); CPPUNIT_ASSERT(rs.size() == 1 && rs[0] == 1); -*/ + _attr->PutValue(32, 2,2); CPPUNIT_ASSERT(_attr->HasValue(2, 2)); -/* + vector rowTitles; rowTitles.push_back("title1"); rowTitles.push_back("title2"); @@ -120,7 +120,6 @@ void SALOMEDSTest::testAttributeTableOfInteger() CPPUNIT_ASSERT(ct.size() == 2 && ct[0] == "new_title" && ct[1] == "title2"); -*/ vector rowUnits; rowUnits.push_back("unit1"); @@ -129,8 +128,6 @@ void SALOMEDSTest::testAttributeTableOfInteger() //Check method SetRowUnits _attr->SetRowUnits(rowUnits); -/* - //Check method SetRowUnit _attr->SetRowUnit(1, "new_unit"); @@ -185,7 +182,7 @@ void SALOMEDSTest::testAttributeTableOfInteger() data2 = _attr->GetColumn(3); CPPUNIT_ASSERT(data2.size() == 3 && data2[0] == 11 && data2[1] == -22 && data2[2] == -33); -*/ + sm->Close(study); }