mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-25 11:17:13 +00:00
test: add test case for func with multiline param list
This commit is contained in:
parent
5ae67747f5
commit
d94a832264
@ -360,6 +360,23 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_fold_func_with_multiline_param_list() {
|
||||
check(
|
||||
r#"
|
||||
<fold function>fn func<fold arglist>(
|
||||
a: i32,
|
||||
b: i32,
|
||||
c: i32,
|
||||
)</fold> <fold block>{
|
||||
|
||||
|
||||
|
||||
}</fold></fold>
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_fold_comments() {
|
||||
check(
|
||||
@ -572,10 +589,10 @@ const _: S = S <fold block>{
|
||||
fn fold_multiline_params() {
|
||||
check(
|
||||
r#"
|
||||
fn foo<fold arglist>(
|
||||
<fold function>fn foo<fold arglist>(
|
||||
x: i32,
|
||||
y: String,
|
||||
) {}</fold>
|
||||
)</fold> {}</fold>
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user