Mercurial > hg > orthanc
changeset 1972:38fb3f524d81
fix warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 Apr 2016 14:02:18 +0200 |
parents | 869a87c08673 |
children | 7bd4cb780feb |
files | UnitTestsSources/StreamTests.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
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()); }