Expand test coverage

This commit is contained in:
Juno Takano 2026-01-10 05:42:36 -03:00
commit 5958f1551b
27 changed files with 593 additions and 109 deletions

View file

@ -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![]);
}
}