[parser] Attempt to write a unit test; realize you need a way to check for equality of objects 🤷
This commit is contained in:
parent
683c9df243
commit
37455641ec
1 changed files with 7 additions and 0 deletions
|
@ -147,7 +147,14 @@ impl<T> Iterator for Parser<T> where T: Iterator<Item=LexerResult> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use sibillexer::Lexer;
|
||||
use sibiltypes::Pair;
|
||||
use super::Parser;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let lexer = Lexer::new("(ab)".chars());
|
||||
let mut parser = Parser::new(lexer);
|
||||
let obj = parser.next().unwrap().unwrap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue