diff --git a/src/tests/wikilinks.rs b/src/tests/wikilinks.rs index 0017d467..21c6bdf2 100644 --- a/src/tests/wikilinks.rs +++ b/src/tests/wikilinks.rs @@ -73,6 +73,18 @@ fn wikilinks_supercedes_relaxed_autolinks() { ); } +#[test] +fn wikilinks_exceeds_label_limit() { + let long_label = format!("[[{:b<1100}]]", "a"); + let expected = format!("

{}

\n", long_label); + + html_opts!( + [extension.wikilinks_title_after_pipe], + &long_label, + &expected, + ); +} + #[test] fn sourcepos() { assert_ast_match!(