test: add test case for fold doc comment for multiline param list fn

This commit is contained in:
Young-Flash 2025-07-26 11:59:50 +08:00
parent a0c7a4ab83
commit a56035dd4e

View File

@ -690,4 +690,21 @@ type Foo<T, U> = foo<fold arglist><
"#,
)
}
#[test]
fn test_fold_doc_comments_with_multiline_paramlist_function() {
check(
r#"
<fold comment>/// A very very very very very very very very very very very very very very very
/// very very very long description</fold>
<fold function>fn foo<fold arglist>(
very_long_parameter_name: u32,
another_very_long_parameter_name: u32,
third_very_long_parm: u32,
)</fold> <fold block>{
todo!()
}</fold></fold>
"#,
);
}
}