mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +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,
|
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"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue