Skip to content

Commit

Permalink
Test empty function re #3692
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Apr 8, 2013
1 parent 089e71c commit e8c0ee2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/Geometry/test/ParameterMapTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ class ParameterMapTest : public CxxTest::TestSuite
const double value(5.1);
ParameterMap pmap;
TS_ASSERT_EQUALS(pmap.size(), 0);
TSM_ASSERT("Newly created parameter map should be empty",pmap.empty())
pmap.addDouble(comp.get(), name, value);
TS_ASSERT_EQUALS(pmap.size(), 1);
TSM_ASSERT("Populated parameter map should not be empty",!pmap.empty())
// Check that the correct one went in
Parameter_sptr fetchedValue = pmap.get(comp.get(), name);
TS_ASSERT(fetchedValue);
Expand Down Expand Up @@ -156,6 +158,7 @@ class ParameterMapTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS(pmap.size(), 2);
pmap.clear();
TS_ASSERT_EQUALS(pmap.size(), 0);
TSM_ASSERT("Cleared parameter map should be empty",pmap.empty())
}

void test_lookup_via_type_returns_null_if_fails()
Expand Down

0 comments on commit e8c0ee2

Please sign in to comment.