diff --git a/schala-lang/src/parsing/test.rs b/schala-lang/src/parsing/test.rs index f7c5b91..ac30a0a 100644 --- a/schala-lang/src/parsing/test.rs +++ b/schala-lang/src/parsing/test.rs @@ -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::*;