From c0fd07184b5c367f85a57f6d98ed0900de97cb22 Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Tue, 29 Aug 2023 00:22:49 +0300 Subject: [PATCH] Add tests for new line doc comment --- crates/teloxide/tests/command.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/teloxide/tests/command.rs b/crates/teloxide/tests/command.rs index b10a229d..330e53a2 100644 --- a/crates/teloxide/tests/command.rs +++ b/crates/teloxide/tests/command.rs @@ -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" ); }