diff options
Diffstat (limited to 'dhall/tests')
-rw-r--r-- | dhall/tests/common/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dhall/tests/common/mod.rs b/dhall/tests/common/mod.rs index d18b4bf..a24125e 100644 --- a/dhall/tests/common/mod.rs +++ b/dhall/tests/common/mod.rs @@ -89,6 +89,11 @@ pub fn run_test(base_path: &str, feature: Feature) { let expected = dhall::imports::panic_imports(&expected); assert_eq_pretty!(expr, expected); + + // Round-trip pretty-printer + let expr = parser::parse_expr(&expr.to_string()).unwrap(); + let expr = dhall::imports::panic_imports(&expr); + assert_eq!(expr, expected); } ParserFailure => { let file_path = base_path + ".dhall"; |