Store edits in trees, not by splitting stack
This allows for multiple edits per parse, though it is not exposed through the API yet
This commit is contained in:
parent
0467d190fe
commit
b3d883e128
11 changed files with 169 additions and 333 deletions
|
|
@ -223,7 +223,7 @@ describe("Parser", [&]() {
|
|||
});
|
||||
|
||||
it("re-reads only the changed portion of the input", [&]() {
|
||||
AssertThat(input->strings_read, Equals(vector<string>({ " abc * 5)" })));
|
||||
AssertThat(input->strings_read, Equals(vector<string>({ " abc * 5)", "" })));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ describe("Parser", [&]() {
|
|||
});
|
||||
|
||||
it("re-reads only the changed portion of the input", [&]() {
|
||||
AssertThat(input->strings_read, Equals(vector<string>({ "123 + 5 ", " 4", " ^ (", "" })));
|
||||
AssertThat(input->strings_read, Equals(vector<string>({ "123 + 5 ", "" })));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue