Skip to content

Commit

Permalink
test: update AST insert_index test cases
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jul 17, 2024
1 parent 41d1642 commit 22c09f8
Show file tree
Hide file tree
Showing 93 changed files with 39 additions and 280 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ expression: "crate::tests::parsing_file_ast_json(\"hello.k\",\n r####\"\ndata
"end_line": 3,
"end_column": 21
},
"operation": "Override",
"insert_index": -1
"operation": "Override"
},
"filename": "hello.k",
"line": 3,
Expand All @@ -99,8 +98,7 @@ expression: "crate::tests::parsing_file_ast_json(\"hello.k\",\n r####\"\ndata
"end_line": 3,
"end_column": 22
},
"operation": "Union",
"insert_index": -1
"operation": "Union"
},
"filename": "hello.k",
"line": 3,
Expand Down Expand Up @@ -263,8 +261,7 @@ expression: "crate::tests::parsing_file_ast_json(\"hello.k\",\n r####\"\ndata
"end_line": 4,
"end_column": 44
},
"operation": "Override",
"insert_index": -1
"operation": "Override"
},
"filename": "hello.k",
"line": 4,
Expand All @@ -281,8 +278,7 @@ expression: "crate::tests::parsing_file_ast_json(\"hello.k\",\n r####\"\ndata
"end_line": 5,
"end_column": 0
},
"operation": "Override",
"insert_index": -1
"operation": "Override"
},
"filename": "hello.k",
"line": 4,
Expand All @@ -299,8 +295,7 @@ expression: "crate::tests::parsing_file_ast_json(\"hello.k\",\n r####\"\ndata
"end_line": 5,
"end_column": 0
},
"operation": "Union",
"insert_index": -1
"operation": "Union"
},
"filename": "hello.k",
"line": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ Node {
end_column: 19,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -149,4 +148,3 @@ Node {
end_line: 1,
end_column: 20,
}

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Node {
end_column: 7,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand Down Expand Up @@ -178,7 +177,6 @@ Node {
end_column: 21,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -195,4 +193,3 @@ Node {
end_line: 1,
end_column: 21,
}

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Node {
end_column: 5,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand Down Expand Up @@ -183,7 +182,6 @@ Node {
end_column: 25,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -200,4 +198,3 @@ Node {
end_line: 1,
end_column: 26,
}

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Node {
end_column: 6,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -66,4 +65,3 @@ Node {
end_line: 1,
end_column: 6,
}

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Node {
end_column: 4,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand Down Expand Up @@ -101,7 +100,6 @@ Node {
end_column: 9,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -118,4 +116,3 @@ Node {
end_line: 1,
end_column: 9,
}

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ Node {
end_column: 15,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -82,7 +81,6 @@ Node {
end_column: 15,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand Down Expand Up @@ -133,7 +131,6 @@ Node {
end_column: 21,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -150,4 +147,3 @@ Node {
end_line: 1,
end_column: 22,
}

Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ Node {
end_column: 13,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -104,7 +103,6 @@ Node {
end_column: 13,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand Down Expand Up @@ -155,7 +153,6 @@ Node {
end_column: 19,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -172,4 +169,3 @@ Node {
end_line: 1,
end_column: 20,
}

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ Node {
end_column: 17,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -84,7 +83,6 @@ Node {
end_column: 18,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -101,4 +99,3 @@ Node {
end_line: 1,
end_column: 18,
}

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ Node {
end_column: 17,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -85,7 +84,6 @@ Node {
end_column: 18,
},
operation: Union,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -102,4 +100,3 @@ Node {
end_line: 1,
end_column: 18,
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: parser/src/tests/error_recovery.rs
assertion_line: 73
expression: "crate::tests::parsing_expr_string(\"{你好\")"
---
Node {
Expand Down Expand Up @@ -45,7 +44,6 @@ Node {
end_column: 3,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -62,4 +60,3 @@ Node {
end_line: 1,
end_column: 3,
}

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Node {
end_column: 6,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand Down Expand Up @@ -100,7 +99,6 @@ Node {
end_column: 13,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -117,4 +115,3 @@ Node {
end_line: 1,
end_column: 13,
}

Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Node {
end_column: 11,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -98,7 +97,6 @@ Node {
end_column: 12,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -115,4 +113,3 @@ Node {
end_line: 1,
end_column: 12,
}

Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Node {
end_column: 11,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -98,7 +97,6 @@ Node {
end_column: 11,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -115,4 +113,3 @@ Node {
end_line: 1,
end_column: 11,
}

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Node {
end_column: 9,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 2,
Expand Down Expand Up @@ -100,7 +99,6 @@ Node {
end_column: 9,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 3,
Expand Down Expand Up @@ -133,7 +131,6 @@ Node {
end_column: 4,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 4,
Expand All @@ -150,4 +147,3 @@ Node {
end_line: 4,
end_column: 4,
}

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Node {
end_column: 6,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand Down Expand Up @@ -100,7 +99,6 @@ Node {
end_column: 12,
},
operation: Override,
insert_index: -1,
},
filename: "",
line: 1,
Expand All @@ -117,4 +115,3 @@ Node {
end_line: 1,
end_column: 13,
}

Loading

0 comments on commit 22c09f8

Please sign in to comment.