mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
fix: update tests from python grammar changes
This commit is contained in:
parent
d0029a1527
commit
b192200008
|
|
@ -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
|
||||
|
|
|
|||
4
test/fixtures/error_corpus/python_errors.txt
vendored
4
test/fixtures/error_corpus/python_errors.txt
vendored
|
|
@ -90,7 +90,9 @@ def a():
|
|||
(ERROR (identifier))
|
||||
body: (block
|
||||
(expression_statement (string
|
||||
string_content: (string_content))))))
|
||||
(string_start)
|
||||
(string_content)
|
||||
(string_end))))))
|
||||
|
||||
===========================================
|
||||
incomplete definition in class definition
|
||||
|
|
|
|||
Loading…
Reference in a new issue