Fix missing brackets test

This commit is contained in:
Colin Benner 2018-10-01 08:21:33 +02:00
parent bb1b0774f1
commit 9f742ffc3d

View file

@ -574,7 +574,7 @@ mod tests {
let mut iter = TokenIterator::new("(").peekable();
let expr = parse_term(&mut iter);
match expr {
Expr::Error(ref s) if s == "Expected ), got eof" => (),
Expr::Error(ref s) => assert_eq!(s, "Expected ), got Eof"),
x => panic!("Wrong result: {}", x),
}
}