diff --git a/Code/Mantid/Framework/Geometry/test/ParameterMapTest.h b/Code/Mantid/Framework/Geometry/test/ParameterMapTest.h index 5ce59245e585..6be82c348135 100644 --- a/Code/Mantid/Framework/Geometry/test/ParameterMapTest.h +++ b/Code/Mantid/Framework/Geometry/test/ParameterMapTest.h @@ -531,6 +531,12 @@ class ParameterMapTest : public CxxTest::TestSuite Parameter_sptr a = newPMap.get(newComp.get(), "A"); TS_ASSERT_EQUALS( a->value(), 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(), true); + auto oldA = oldPMap.get(oldComp.get(), "A"); + TS_ASSERT_EQUALS( oldA->value(), false); } private: