diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-04-14 18:04:52 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-04-14 18:04:52 +0000 |
commit | da1de5cdb5c42ce811a66d377789e585042b98c7 (patch) | |
tree | 44f530399c603252535232ae6483abce734ca828 /src/unit | |
parent | 49d9fa3c2435b8e97ffdc42e40a880a3dad82f8a (diff) | |
download | libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.gz libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.bz2 libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.xz libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.zip |
Added support for running subsets of unit tests to Bu::UnitSuite, now just list
the names of the tests you want to run on the command line.
Also, fixed some minor issues in two of the test suites.
Diffstat (limited to 'src/unit')
-rw-r--r-- | src/unit/file.unit | 4 | ||||
-rw-r--r-- | src/unit/variant.unit | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/unit/file.unit b/src/unit/file.unit index fb04e57..efca4f1 100644 --- a/src/unit/file.unit +++ b/src/unit/file.unit | |||
@@ -48,7 +48,11 @@ suite File | |||
48 | if( s < 50 ) | 48 | if( s < 50 ) |
49 | { | 49 | { |
50 | unitTest( total == 256 ); | 50 | unitTest( total == 256 ); |
51 | unitTest( sf.isEos() == false ); | ||
52 | unitTest( sf.read( buf, 1 ) == 0 ); | ||
51 | unitTest( sf.isEos() == true ); | 53 | unitTest( sf.isEos() == true ); |
54 | // EOS is only set when an attempt to read past the end of | ||
55 | // the stream is made, not when a short block is returned. | ||
52 | break; | 56 | break; |
53 | } | 57 | } |
54 | } | 58 | } |
diff --git a/src/unit/variant.unit b/src/unit/variant.unit index 4fd5e26..53abdc0 100644 --- a/src/unit/variant.unit +++ b/src/unit/variant.unit | |||
@@ -55,7 +55,7 @@ suite Variant | |||
55 | arg( mkastring().getStr() ). | 55 | arg( mkastring().getStr() ). |
56 | arg( i1, Fmt(2).fill('0') ). | 56 | arg( i1, Fmt(2).fill('0') ). |
57 | arg( i2, Fmt(2).fill('0') ); | 57 | arg( i2, Fmt(2).fill('0') ); |
58 | sio << sio.nl << out << sio.nl; | 58 | // sio << sio.nl << out << sio.nl; |
59 | unitTest( out == "hello-stuff-32-00.odp" ); | 59 | unitTest( out == "hello-stuff-32-00.odp" ); |
60 | } | 60 | } |
61 | } | 61 | } |