Skip to content

Commit

Permalink
Add a test for the paramter values after copying between maps.
Browse files Browse the repository at this point in the history
Refs #9802
  • Loading branch information
martyngigg committed Jul 2, 2014
1 parent 626b4b3 commit 3d41c5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Code/Mantid/Framework/Geometry/test/ParameterMapTest.h
Expand Up @@ -531,6 +531,12 @@ class ParameterMapTest : public CxxTest::TestSuite
Parameter_sptr a = newPMap.get(newComp.get(), "A");
TS_ASSERT_EQUALS( a->value<bool>(), false);

// change value on new and ensure it is not changed on the old
newPMap.addBool(oldComp.get(), "A", true);
a = newPMap.get(oldComp.get(), "A");
TS_ASSERT_EQUALS( a->value<bool>(), true);
auto oldA = oldPMap.get(oldComp.get(), "A");
TS_ASSERT_EQUALS( oldA->value<bool>(), false);
}

private:
Expand Down

0 comments on commit 3d41c5f

Please sign in to comment.