Add several tests to dev/test, router handlers and syntax tokens
Some checks are pending
/ verify (push) Waiting to run
Some checks are pending
/ verify (push) Waiting to run
This commit is contained in:
parent
024b0a06ee
commit
6180bb371f
20 changed files with 456 additions and 10 deletions
|
|
@ -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![]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue