Skip to content

Commit

Permalink
Add spec for exceeding label limit
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalmoksha committed May 14, 2024
1 parent 50eaa41 commit e65c4e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tests/wikilinks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!("<p>{}</p>\n", long_label);

html_opts!(
[extension.wikilinks_title_after_pipe],
&long_label,
&expected,
);
}

#[test]
fn sourcepos() {
assert_ast_match!(
Expand Down

0 comments on commit e65c4e8

Please sign in to comment.