From 4fd8976515a7e0a4aa34bad9611e9b67df5a186a Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 13 Mar 2016 20:15:22 +0100 Subject: Issue #126: more warnings fixed. --- tests/utility/seekableInputStreamRegionAdapterTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/utility/seekableInputStreamRegionAdapterTest.cpp') diff --git a/tests/utility/seekableInputStreamRegionAdapterTest.cpp b/tests/utility/seekableInputStreamRegionAdapterTest.cpp index d62e062f..e703051b 100644 --- a/tests/utility/seekableInputStreamRegionAdapterTest.cpp +++ b/tests/utility/seekableInputStreamRegionAdapterTest.cpp @@ -148,11 +148,13 @@ VMIME_TEST_SUITE_BEGIN(seekableInputStreamRegionAdapterTest) vmime::byte_t buffer1[100]; std::fill(vmime::begin(buffer1), vmime::end(buffer1), 0); - vmime::size_t read = ustream->read(buffer1, 7); + + VASSERT_EQ("Read 1", 7, ustream->read(buffer1, 7)); vmime::byte_t buffer2[100]; std::fill(vmime::begin(buffer2), vmime::end(buffer2), 0); - vmime::size_t read2 = stream->read(buffer2, 6); + + VASSERT_EQ("Read 2", 6, stream->read(buffer2, 6)); VASSERT_EQ("Buffer 1", "THIS IS", vmime::utility::stringUtils::makeStringFromBytes(buffer1, 7)); -- cgit v1.2.3