Mercurial > hg > orthanc
diff UnitTestsSources/StreamTests.cpp @ 1972:38fb3f524d81
fix warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 Apr 2016 14:02:18 +0200 |
parents | b1291df2f780 |
children | aa4b8895cd23 |
line wrap: on
line diff
--- a/UnitTestsSources/StreamTests.cpp Mon Apr 11 13:50:44 2016 +0200 +++ b/UnitTestsSources/StreamTests.cpp Mon Apr 11 14:02:18 2016 +0200 @@ -74,7 +74,7 @@ std::string uncompressed; IBufferCompressor::Uncompress(uncompressed, c, compressed); - ASSERT_EQ(0, uncompressed.size()); + ASSERT_TRUE(uncompressed.empty()); } @@ -107,7 +107,7 @@ std::string uncompressed; IBufferCompressor::Uncompress(uncompressed, c, compressed); - ASSERT_EQ(0, uncompressed.size()); + ASSERT_TRUE(uncompressed.empty()); } @@ -154,6 +154,7 @@ ZlibCompressor c; IBufferCompressor::Compress(compressed, c, s); + ASSERT_FALSE(compressed.empty()); compressed[compressed.size() - 1] = 'a'; std::string u; @@ -172,7 +173,7 @@ std::string uncompressed; IBufferCompressor::Uncompress(uncompressed, c, compressed); - ASSERT_EQ(0u, uncompressed.size()); + ASSERT_TRUE(uncompressed.empty()); }