From fd8ad38a2c9ad31351ac1406b8ca36327e361581 Mon Sep 17 00:00:00 2001 From: PvdBerg Date: Fri, 8 Jun 2018 22:26:20 +0200 Subject: Add test and fix another newline difference --- tests/test_msg_builder.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_msg_builder.rs') diff --git a/tests/test_msg_builder.rs b/tests/test_msg_builder.rs index c291bf5..eca8aef 100644 --- a/tests/test_msg_builder.rs +++ b/tests/test_msg_builder.rs @@ -15,6 +15,14 @@ fn code_blocks() { assert_eq!(content, "```rb\ntest\n```"); } +#[test] +fn safe_code_blocks() { + let content = MessageBuilder::new() + .push_codeblock_safe("test", Some("rb")) + .build(); + assert_eq!(content, "```rb\ntest\n```"); +} + #[test] fn safe_content() { let content = MessageBuilder::new() -- cgit v1.2.3