Add tests for new line doc comment

This commit is contained in:
TheAwiteb 2023-08-29 00:22:49 +03:00
parent 6fbe7154ba
commit c0fd07184b
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -252,11 +252,15 @@ fn description_with_doc_attr() {
Start, Start,
/// Help command\nwith new line /// Help command\nwith new line
Help, Help,
/// Foo command
/// with new line
Foo,
} }
assert_eq!( assert_eq!(
DefaultCommands::descriptions().to_string(), DefaultCommands::descriptions().to_string(),
"/start — Start command\n/help — Help command\nwith new line" "/start — Start command\n/help — Help command\nwith new line\n/foo — Foo command\nwith \
new line"
); );
} }