fix: update tests from python grammar changes

This commit is contained in:
Amaan Qureshi 2023-06-29 20:20:37 -04:00
parent d0029a1527
commit b192200008
2 changed files with 4 additions and 2 deletions

View file

@ -509,7 +509,7 @@ fn test_parsing_after_detecting_error_in_the_middle_of_a_string_token() {
let tree = parser.parse(&source, None).unwrap();
assert_eq!(
tree.root_node().to_sexp(),
"(module (expression_statement (assignment left: (identifier) right: (expression_list (identifier) (string string_content: (string_content))))))"
"(module (expression_statement (assignment left: (identifier) right: (expression_list (identifier) (string (string_start) (string_content) (string_end))))))"
);
// Delete a suffix of the source code, starting in the middle of the string