Adjust assertion to reflect rust grammar upgrade
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
3e232f7115
commit
7fc951853d
@@ -190,7 +190,7 @@ async fn test_reparse(mut cx: gpui::TestAppContext) {
|
||||
concat!(
|
||||
"(source_file (function_item name: (identifier) ",
|
||||
"parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ",
|
||||
"body: (block (identifier))))"
|
||||
"body: (block (expression_statement (identifier)))))"
|
||||
)
|
||||
);
|
||||
|
||||
@@ -224,11 +224,11 @@ async fn test_reparse(mut cx: gpui::TestAppContext) {
|
||||
concat!(
|
||||
"(source_file (function_item name: (identifier) ",
|
||||
"parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ",
|
||||
"body: (block (call_expression ",
|
||||
"body: (block (expression_statement (call_expression ",
|
||||
"function: (generic_function ",
|
||||
"function: (field_expression value: (identifier) field: (field_identifier)) ",
|
||||
"type_arguments: (type_arguments (type_identifier))) ",
|
||||
"arguments: (arguments (identifier))))))",
|
||||
"arguments: (arguments (identifier)))))))",
|
||||
)
|
||||
);
|
||||
|
||||
@@ -262,11 +262,11 @@ async fn test_reparse(mut cx: gpui::TestAppContext) {
|
||||
concat!(
|
||||
"(source_file (function_item name: (identifier) ",
|
||||
"parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ",
|
||||
"body: (block (call_expression ",
|
||||
"body: (block (expression_statement (call_expression ",
|
||||
"function: (generic_function ",
|
||||
"function: (field_expression value: (identifier) field: (field_identifier)) ",
|
||||
"type_arguments: (type_arguments (type_identifier))) ",
|
||||
"arguments: (arguments (identifier))))))",
|
||||
"arguments: (arguments (identifier)))))))",
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user