aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-10-09 03:30:32 +0200
committerJohannes Schickel2011-10-09 03:30:32 +0200
commita877ae2704fc9190f6d21aad57cb8ad10961579b (patch)
treec70deec5d6d74eef8880f9abaef038019f15681c
parentb4a23a709d880577fd7d3660f8a701ed6cc9f871 (diff)
downloadscummvm-rg350-a877ae2704fc9190f6d21aad57cb8ad10961579b.tar.gz
scummvm-rg350-a877ae2704fc9190f6d21aad57cb8ad10961579b.tar.bz2
scummvm-rg350-a877ae2704fc9190f6d21aad57cb8ad10961579b.zip
TEST: Extend Common::Array copy-constructor test a bit.
-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);