diff options
author | Nadrieril | 2019-03-03 03:21:32 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-03 03:21:32 +0100 |
commit | f29f8e61adb359d12105fcc87a53137416519638 (patch) | |
tree | 0d952e50ecf866881ab56af9457fccdb43921a9c /dhall/tests | |
parent | 153f40c447938620f7186885a2eff6b22a4509f6 (diff) |
Parse more AST nodes
Diffstat (limited to 'dhall/tests')
-rw-r--r-- | dhall/tests/macros.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dhall/tests/macros.rs b/dhall/tests/macros.rs index 6031a34..5dec825 100644 --- a/dhall/tests/macros.rs +++ b/dhall/tests/macros.rs @@ -18,8 +18,11 @@ macro_rules! run_spec_test { }; (parser, $path:expr) => { let expr_str = include_test_str!(concat!($path, "A")); - parser::parse_expr_pest(&expr_str).map_err(|e| println!("{}", e)).unwrap(); - // parser::parse_expr(&expr_str).unwrap(); + let pest_expr = parser::parse_expr_pest(&expr_str).map_err(|e| println!("{}", e)).unwrap(); + match parser::parse_expr_lalrpop(&expr_str) { + Ok(larlpop_expr) => assert_eq!(pest_expr, larlpop_expr), + Err(_) => {}, + }; }; (parser_failure, $path:expr) => { let expr_str = include_test_str!($path); |