Expand test coverage
This commit is contained in:
parent
3837af387a
commit
5958f1551b
27 changed files with 593 additions and 109 deletions
|
|
@ -47,3 +47,16 @@ pub fn close(state: &State, tokens: &mut Vec<Token>) {
|
|||
Block::None => (),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::syntax::content::parser::{context::Block, state::State};
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "End of input with open list")]
|
||||
fn open_list_eoi() {
|
||||
let mut state = State::default();
|
||||
state.context.block = Block::List;
|
||||
super::close(&state, &mut vec![]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue