diff options
author | Nadrieril | 2019-04-16 21:00:46 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-16 21:00:46 +0200 |
commit | a0c36547372db5421704e4c8f17226a25ea57b7a (patch) | |
tree | e42937c3ed0ea44a3e37f7f0a2eeb5486eb3172d | |
parent | b12c312dcdc067982708193cedf43073483e5043 (diff) |
Improve test error ergonomics
Diffstat (limited to '')
-rw-r--r-- | dhall/src/tests.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dhall/src/tests.rs b/dhall/src/tests.rs index 5cea6aa..915c181 100644 --- a/dhall/src/tests.rs +++ b/dhall/src/tests.rs @@ -24,8 +24,14 @@ macro_rules! make_spec_test { #[allow(non_snake_case)] fn $name() { use crate::tests::*; - run_test_with_bigger_stack($path, Feature::$type, Status::$status) - .unwrap(); + match run_test_with_bigger_stack( + $path, + Feature::$type, + Status::$status, + ) { + Ok(_) => {} + Err(s) => panic!(s), + } } }; } |