aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utility/seekableInputStreamRegionAdapterTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2016-03-13 19:15:22 +0000
committerVincent Richard <[email protected]>2016-03-13 19:15:22 +0000
commit4fd8976515a7e0a4aa34bad9611e9b67df5a186a (patch)
treee0553b5613009e20ba08be370754bb6d2a2bda99 /tests/utility/seekableInputStreamRegionAdapterTest.cpp
parentIssue #126: fixed some warnings. (diff)
downloadvmime-4fd8976515a7e0a4aa34bad9611e9b67df5a186a.tar.gz
vmime-4fd8976515a7e0a4aa34bad9611e9b67df5a186a.zip
Issue #126: more warnings fixed.
Diffstat (limited to '')
-rw-r--r--tests/utility/seekableInputStreamRegionAdapterTest.cpp6
1 files changed, 4 insertions, 2 deletions
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));