diff options
author | Nadrieril | 2019-03-02 22:21:43 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-02 22:25:38 +0100 |
commit | 54d3f23e68bf6e769d8a96e40a2b0c4426e38507 (patch) | |
tree | 60024b9d191aff4dd21d5f3489c786088a07f52c /dhall/tests/macros.rs | |
parent | 48d89a280838919c1fba9e0acf1e090d3286c470 (diff) |
Add parser/failure tests from spec
Diffstat (limited to 'dhall/tests/macros.rs')
-rw-r--r-- | dhall/tests/macros.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dhall/tests/macros.rs b/dhall/tests/macros.rs index 5ad2ab3..6031a34 100644 --- a/dhall/tests/macros.rs +++ b/dhall/tests/macros.rs @@ -18,7 +18,13 @@ macro_rules! run_spec_test { }; (parser, $path:expr) => { let expr_str = include_test_str!(concat!($path, "A")); - parser::parse_expr(&expr_str).unwrap(); + parser::parse_expr_pest(&expr_str).map_err(|e| println!("{}", e)).unwrap(); + // parser::parse_expr(&expr_str).unwrap(); + }; + (parser_failure, $path:expr) => { + let expr_str = include_test_str!($path); + parser::parse_expr_pest(&expr_str).map_err(|e| println!("{}", e)).unwrap_err(); + // parser::parse_expr(&expr_str).unwrap(); }; } |