WIP last tests
This commit is contained in:
parent
a41d808da3
commit
7c3e924194
@ -162,6 +162,7 @@ macro_rules! assert_expr {
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
macro_rules! assert_fail_expr {
|
||||
($input:expr, $failure:expr) => {
|
||||
let mut parser = Parser::new();
|
||||
@ -170,6 +171,17 @@ macro_rules! assert_fail_expr {
|
||||
//assert_eq!(err.to_string(), $failure);
|
||||
};
|
||||
}
|
||||
*/
|
||||
|
||||
macro_rules! assert_fail_expr {
|
||||
($input:expr, $failure:expr) => {
|
||||
let mut parser = Parser::new();
|
||||
let _err = parser.expression_comb($input).unwrap_err();
|
||||
//TODO make real tests for failures
|
||||
//assert_eq!(err.to_string(), $failure);
|
||||
};
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn basic_literals() {
|
||||
use ExpressionKind::*;
|
||||
|
Loading…
Reference in New Issue
Block a user