diff options
Diffstat (limited to 'src/unit/file.unit')
-rw-r--r-- | src/unit/file.unit | 4 |
1 files changed, 4 insertions, 0 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 | } |