Fix halt_on_error tests
This commit is contained in:
parent
34349f9cbb
commit
a6cf2e87e7
3 changed files with 8 additions and 3 deletions
|
|
@ -22,6 +22,10 @@ describe("Document", [&]() {
|
|||
before_each([&]() {
|
||||
record_alloc::start();
|
||||
document = ts_document_new();
|
||||
|
||||
if (getenv("TREE_SITTER_ENABLE_DEBUG_GRAPHS")) {
|
||||
ts_document_print_debugging_graphs(document, true);
|
||||
}
|
||||
});
|
||||
|
||||
after_each([&]() {
|
||||
|
|
@ -434,7 +438,7 @@ describe("Document", [&]() {
|
|||
root = ts_document_root_node(document);
|
||||
assert_node_string_equals(
|
||||
root,
|
||||
"(ERROR (number) (null) (UNEXPECTED 'e'))");
|
||||
"(ERROR (number) (null))");
|
||||
|
||||
AssertThat(ts_node_end_byte(root), Equals(input_string.size()));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue