Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMauroy committed Feb 25, 2025
1 parent 18f748f commit 9917574
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions crates/biome_markdown_parser/src/lexer/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,36 @@ fn heading_level_3() {
}
}

#[test]
fn heading_level_4() {
assert_lex! {
"#### Heading 4",
MD_HEADER4:4,
WHITESPACE:1,
MD_TEXTUAL_LITERAL:9,
}
}

#[test]
fn heading_level_5() {
assert_lex! {
"##### Heading 5",
MD_HEADER5:5,
WHITESPACE:1,
MD_TEXTUAL_LITERAL:9,
}
}

#[test]
fn heading_level_6() {
assert_lex! {
"###### Heading 6",
MD_HEADER6:6,
WHITESPACE:1,
MD_TEXTUAL_LITERAL:9,
}
}

#[test]
fn thematic_break_literal() {
assert_lex! {
Expand Down

0 comments on commit 9917574

Please sign in to comment.