diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-04-06 19:13:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-04-06 19:13:51 +0000 |
commit | 514721c24c7212c084ad2530e8239ff121097818 (patch) | |
tree | bfe5d346e767df47d10a5631e33a2e0540d72604 /src/unit/array.unit | |
parent | aaeaa599a14642e916bbd8a32a208ee96a26eaac (diff) | |
download | libbu++-514721c24c7212c084ad2530e8239ff121097818.tar.gz libbu++-514721c24c7212c084ad2530e8239ff121097818.tar.bz2 libbu++-514721c24c7212c084ad2530e8239ff121097818.tar.xz libbu++-514721c24c7212c084ad2530e8239ff121097818.zip |
Ok, I rearranged some things, we have a tools dir now, those build by default.
Also I added a bunch of classes that I've been tinkering with that are almost
ready for use, so I figured I may as well throw them in here.
Diffstat (limited to 'src/unit/array.unit')
-rw-r--r-- | src/unit/array.unit | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unit/array.unit b/src/unit/array.unit index 3a777d3..b6528eb 100644 --- a/src/unit/array.unit +++ b/src/unit/array.unit | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | const Bu::Array<int> &ci = ai; | 37 | const Bu::Array<int> &ci = ai; |
38 | j = 0; | 38 | j = 0; |
39 | for( Bu::Array<int>::const_iterator i = ci.begin(); i != ci.end(); i++ ) | 39 | for( Bu::Array<int>::const_iterator i = ci.begin(); i; i++ ) |
40 | unitTest( (*i) == j++ ); | 40 | unitTest( (*i) == j++ ); |
41 | unitTest( j == 10 ); | 41 | unitTest( j == 10 ); |
42 | } | 42 | } |
@@ -46,6 +46,8 @@ | |||
46 | Bu::Array<int> ai; | 46 | Bu::Array<int> ai; |
47 | for( Bu::Array<int>::iterator i = ai.begin(); i != ai.end(); i++ ) | 47 | for( Bu::Array<int>::iterator i = ai.begin(); i != ai.end(); i++ ) |
48 | unitFailed("Empty lists shouldn't be iterated through."); | 48 | unitFailed("Empty lists shouldn't be iterated through."); |
49 | for( Bu::Array<int>::iterator i = ai.begin(); i; i++ ) | ||
50 | unitFailed("Empty lists shouldn't be iterated through."); | ||
49 | } | 51 | } |
50 | 52 | ||
51 | {%copy} | 53 | {%copy} |