diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-09-15 12:02:56 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-09-15 12:02:56 +0200 |
| commit | a1804179aaa98b570afd117ec977d7db1e56cc90 (patch) | |
| tree | eafbb5f1b3b1517e56f2b178b8706cfb985d9913 | |
| parent | ab346593cab00bc000cb34819f3784580d21e6d7 (diff) | |
| download | Project-Tick-a1804179aaa98b570afd117ec977d7db1e56cc90.tar.gz Project-Tick-a1804179aaa98b570afd117ec977d7db1e56cc90.zip | |
Change test a bit
| -rw-r--r-- | test/zlibstream_test.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/zlibstream_test.h b/test/zlibstream_test.h index 65f83b89dd..4bcf140fd8 100644 --- a/test/zlibstream_test.h +++ b/test/zlibstream_test.h @@ -38,12 +38,14 @@ public: TS_ASSERT_DIFFERS(expected.str().size(), 0u); expected_in.close(); - izlibstream igzs(gzip_in, 512); //Small buffer so not all fits at once (the compressed file is 561 bytes) - TS_ASSERT(igzs); + izlibstream igzs(gzip_in, 256); //Small buffer so not all fits at once (the compressed file is 561 bytes) + TS_ASSERT(igzs.good()); + TS_ASSERT(!igzs.eof()); std::stringbuf data; igzs >> &data; TS_ASSERT(igzs); + TS_ASSERT(igzs.eof()); TS_ASSERT_EQUALS(data.str(), expected.str()); } }; |
