TEST: Extend Common::Array copy-constructor test a bit.

This commit is contained in:
Johannes Schickel 2011-10-09 03:30:32 +02:00
parent b4a23a709d
commit a877ae2704

View file

@ -215,6 +215,11 @@ class ArrayTestSuite : public CxxTest::TestSuite
Common::Array<int> array2(array1);
// Alter the original array
array1[0] = 7;
array1[1] = -5;
array1[2] = 2;
TS_ASSERT_EQUALS(array2[0], -3);
TS_ASSERT_EQUALS(array2[1], 5);
TS_ASSERT_EQUALS(array2[2], 9);