In SpyReader, store entire strings read, not individual chunks
Makes assertions easier to write. We don't need to assert that the strings were read chunk by chunk.
This commit is contained in:
parent
fbb9b24d7b
commit
a3a7546450
3 changed files with 5 additions and 8 deletions
|
|
@ -33,12 +33,8 @@ describe("parsing", [&]() {
|
|||
});
|
||||
|
||||
it("reads the entire input", [&]() {
|
||||
AssertThat(reader->chunks_read, Equals(vector<string>({
|
||||
"{ \"ke",
|
||||
"y\": [",
|
||||
"1, 2]",
|
||||
" }",
|
||||
""
|
||||
AssertThat(reader->strings_read, Equals(vector<string>({
|
||||
"{ \"key\": [1, 2] }"
|
||||
})));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue