aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/common/array.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/common/array.h b/test/common/array.h
index c10270436f..f0027ec201 100644
--- a/test/common/array.h
+++ b/test/common/array.h
@@ -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);