mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add tests for new line doc comment
This commit is contained in:
parent
6fbe7154ba
commit
c0fd07184b
1 changed files with 5 additions and 1 deletions
|
@ -252,11 +252,15 @@ fn description_with_doc_attr() {
|
|||
Start,
|
||||
/// Help command\nwith new line
|
||||
Help,
|
||||
/// Foo command
|
||||
/// with new line
|
||||
Foo,
|
||||
}
|
||||
|
||||
assert_eq!(
|
||||
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"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue