From 8f7b9fa58e90307816ee7a356c4129de73a90174 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 9 Feb 2018 08:44:23 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@11767 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/TestBZ2/TestBZ2.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autotest/TestBZ2/TestBZ2.cpp b/autotest/TestBZ2/TestBZ2.cpp index 60025b331..a08d7b0c9 100644 --- a/autotest/TestBZ2/TestBZ2.cpp +++ b/autotest/TestBZ2/TestBZ2.cpp @@ -15,5 +15,13 @@ CONSOLE_APP_MAIN String s = BZ2Compress(data); DUMP(s.GetCount()); ASSERT(BZ2Decompress(s) == data); + + StringStream ss(s); + BZ2DecompressStream in(ss); + String s2; + while(!in.IsEof()) + s2.Cat(in.Get()); + ASSERT(s2 == data); + LOG("============= OK"); }