Make clearer assertions about SpyInput's read strings
This commit is contained in:
parent
ca943f09a4
commit
a15e974150
4 changed files with 31 additions and 10 deletions
|
|
@ -254,7 +254,7 @@ describe("Parser", [&]() {
|
|||
"(identifier) "
|
||||
"(math_op (number) (member_access (identifier) (identifier))))))");
|
||||
|
||||
AssertThat(input->strings_read, Equals(vector<string>({ " + abc.d)" })));
|
||||
AssertThat(input->strings_read(), Equals(vector<string>({ " abc.d);" })));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -279,7 +279,7 @@ describe("Parser", [&]() {
|
|||
"(number) "
|
||||
"(math_op (number) (math_op (number) (identifier)))))))");
|
||||
|
||||
AssertThat(input->strings_read, Equals(vector<string>({ "123 || 5 +" })));
|
||||
AssertThat(input->strings_read(), Equals(vector<string>({"123 || 5 ", ";"})));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue