[Scummvm-cvs-logs] scummvm master -> a877ae2704fc9190f6d21aad57cb8ad10961579b
lordhoto
lordhoto at gmail.com
Sun Oct 9 03:37:59 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a877ae2704 TEST: Extend Common::Array copy-constructor test a bit.
Commit: a877ae2704fc9190f6d21aad57cb8ad10961579b
https://github.com/scummvm/scummvm/commit/a877ae2704fc9190f6d21aad57cb8ad10961579b
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2011-10-08T18:30:32-07:00
Commit Message:
TEST: Extend Common::Array copy-constructor test a bit.
Changed paths:
test/common/array.h
diff --git a/test/common/array.h b/test/common/array.h
index c102704..f0027ec 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);
More information about the Scummvm-git-logs
mailing list