diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-05-03 13:09:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-03 13:09:06 +0200 |
commit | 5064823c52fe2cfe162798061b2a2f7133f9b931 (patch) | |
tree | b5db5d360faf893158f6cd1b3159e99e9c6b8e1e /vespalib/src/tests/data/input_reader/input_reader_test.cpp | |
parent | 9a5239261e5b90fd9dc06d291f4a44c5fb663639 (diff) |
Revert "Fix warnings hidden earlier due to including application headers as s…"
Diffstat (limited to 'vespalib/src/tests/data/input_reader/input_reader_test.cpp')
-rw-r--r-- | vespalib/src/tests/data/input_reader/input_reader_test.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vespalib/src/tests/data/input_reader/input_reader_test.cpp b/vespalib/src/tests/data/input_reader/input_reader_test.cpp index 444f57809f7..9ef127be364 100644 --- a/vespalib/src/tests/data/input_reader/input_reader_test.cpp +++ b/vespalib/src/tests/data/input_reader/input_reader_test.cpp @@ -3,6 +3,7 @@ #include <vespa/vespalib/data/memory_input.h> #include <vespa/vespalib/data/input_reader.h> #include <vespa/vespalib/test/chunked_input.h> +#include <algorithm> using namespace vespalib; using vespalib::test::ChunkedInput; @@ -91,12 +92,12 @@ TEST("expect that obtain does not set failure state on input reader") { for (bool byte_first: {true, false}) { MemoryInput input(data); InputReader src(input); - EXPECT_EQUAL(src.obtain(), 5u); - EXPECT_EQUAL(src.obtain(), 5u); + EXPECT_EQUAL(src.obtain(), 5); + EXPECT_EQUAL(src.obtain(), 5); EXPECT_EQUAL(src.read(5), Memory("12345")); EXPECT_TRUE(!src.failed()); - EXPECT_EQUAL(src.obtain(), 0u); - EXPECT_EQUAL(src.obtain(), 0u); + EXPECT_EQUAL(src.obtain(), 0); + EXPECT_EQUAL(src.obtain(), 0); EXPECT_TRUE(!src.failed()); if (byte_first) { EXPECT_EQUAL(src.read(), 0); @@ -108,7 +109,7 @@ TEST("expect that obtain does not set failure state on input reader") { EXPECT_EQUAL(src.read(), 0); } EXPECT_EQUAL(src.get_error_message(), vespalib::string("input underflow")); - EXPECT_EQUAL(src.obtain(), 0u); + EXPECT_EQUAL(src.obtain(), 0); } } |