Add several tests to dev/test, router handlers and syntax tokens
Some checks are pending
/ verify (push) Waiting to run

This commit is contained in:
Juno Takano 2026-03-21 15:44:17 -03:00
commit 6180bb371f
20 changed files with 456 additions and 10 deletions

View file

@ -77,4 +77,27 @@ mod tests {
state.context.block = Block::List;
super::close(&state, &mut vec![]);
}
#[test]
#[should_panic(expected = "End of input with open quote")]
fn open_quote_eoi() {
let mut state = State::default();
state.context.block = Block::Quote;
super::close(&state, &mut vec![]);
}
#[test]
#[should_panic(expected = "End of input with open table")]
fn open_table_eoi() {
let mut state = State::default();
state.context.block = Block::Table;
super::close(&state, &mut vec![]);
}
#[test]
fn open_verse_eoi() {
let mut state = State::default();
state.context.block = Block::Verse;
super::close(&state, &mut vec![]);
}
}