From 514721c24c7212c084ad2530e8239ff121097818 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 6 Apr 2009 19:13:51 +0000 Subject: 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. --- src/unit/array.unit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/unit') 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 @@ const Bu::Array &ci = ai; j = 0; - for( Bu::Array::const_iterator i = ci.begin(); i != ci.end(); i++ ) + for( Bu::Array::const_iterator i = ci.begin(); i; i++ ) unitTest( (*i) == j++ ); unitTest( j == 10 ); } @@ -46,6 +46,8 @@ Bu::Array ai; for( Bu::Array::iterator i = ai.begin(); i != ai.end(); i++ ) unitFailed("Empty lists shouldn't be iterated through."); + for( Bu::Array::iterator i = ai.begin(); i; i++ ) + unitFailed("Empty lists shouldn't be iterated through."); } {%copy} -- cgit v1.2.3