diff options
author | Håvard Pettersen <havardpe@oath.com> | 2017-09-28 15:26:40 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2017-09-29 10:16:46 +0000 |
commit | abefb37a660e395342a1460e233a0933d2e10dc9 (patch) | |
tree | 8f7bbea42745102db5269a89e6efdbce117fc603 /vespalib | |
parent | 88a6576a3cf7b15b2bf9a4cd3bcc861e3a4f38c0 (diff) |
avoid requiring that json parsing consumes all input
(the input could end with \n if human readable)
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/slime/slime_binary_format_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vespalib/src/tests/slime/slime_binary_format_test.cpp b/vespalib/src/tests/slime/slime_binary_format_test.cpp index 371a843a445..6f84b264d9b 100644 --- a/vespalib/src/tests/slime/slime_binary_format_test.cpp +++ b/vespalib/src/tests/slime/slime_binary_format_test.cpp @@ -632,8 +632,7 @@ TEST("testOptionalDecodeOrder") { Slime from_json(const vespalib::string &json) { Slime slime; - size_t size = vespalib::slime::JsonFormat::decode(json, slime); - EXPECT_EQUAL(size, json.size()); + EXPECT_TRUE(vespalib::slime::JsonFormat::decode(json, slime)); return slime; } |