Skip to content

Commit

Permalink
Remove more explicit names from unit test 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 d33ae58 commit 8409e31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Code/Mantid/Framework/Geometry/test/ParameterMapTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ class ParameterMapTest : public CxxTest::TestSuite
{
ParameterMap pmap;
const std::string name("MyValue");
const std::string type("int");
const std::string type(ParameterMap::pInt());
const int value(1);
pmap.add<int>("int", m_testInstrument.get(),name,value);
pmap.add<int>(type, m_testInstrument.get(),name,value);
TS_ASSERT_EQUALS(pmap.contains(m_testInstrument.get(), name, ParameterMap::pInt()), true);
TS_ASSERT_EQUALS(pmap.contains(m_testInstrument.get(), name, ParameterMap::pDouble()), false);
}
Expand Down Expand Up @@ -186,7 +186,7 @@ class ParameterMapTest : public CxxTest::TestSuite
Parameter_sptr fetchedValue = pmap.getRecursiveByType(component.get(), ParameterMap::pBool());
TS_ASSERT(fetchedValue != NULL);
TS_ASSERT_EQUALS("A", fetchedValue->name());
TS_ASSERT_EQUALS("bool", fetchedValue->type());
TS_ASSERT_EQUALS(ParameterMap::pBool(), fetchedValue->type());
TS_ASSERT_EQUALS(true, fetchedValue->value<bool>());
}

Expand All @@ -203,7 +203,7 @@ class ParameterMapTest : public CxxTest::TestSuite
Parameter_sptr fetchedValue = pmap.getRecursiveByType(childComponent.get(), ParameterMap::pBool());
TS_ASSERT(fetchedValue != NULL);
TS_ASSERT_EQUALS("A", fetchedValue->name());
TS_ASSERT_EQUALS("bool", fetchedValue->type());
TS_ASSERT_EQUALS(ParameterMap::pBool(), fetchedValue->type());
TS_ASSERT_EQUALS(true, fetchedValue->value<bool>());
}

Expand Down

0 comments on commit 8409e31

Please sign in to comment.