diff options
Diffstat (limited to 'tests/it.rs')
-rw-r--r-- | tests/it.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/it.rs b/tests/it.rs index b0d7e60..474b2dc 100644 --- a/tests/it.rs +++ b/tests/it.rs @@ -58,7 +58,7 @@ macro_rules! assert_toc { let chapter = Chapter::from_content(content); let result = Toc::add_toc(&chapter, &config); match result { - Ok(result) => assert_eq!(expected.trim_end(), result), + Ok(result) => assert_eq!(expected, result), Err(e) => panic!("{} failed. Error: {}", $name, e), } }; @@ -114,7 +114,7 @@ fn unique_slugs() { #[test] fn add_toc_with_github_marker() { - let marker = "* auto-gen TOC:\n{:toc}".to_owned(); + let marker = "* auto-gen TOC:\n{:toc}\n".to_owned(); assert_toc!("github_marker", with_marker(marker)); } |