WIP last tests

This commit is contained in:
Greg Shuflin 2021-11-20 00:03:05 -08:00
parent a41d808da3
commit 7c3e924194

View File

@ -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::*;