summaryrefslogtreecommitdiff
path: root/dhall/src
diff options
context:
space:
mode:
authorNadrieril2019-04-16 21:00:46 +0200
committerNadrieril2019-04-16 21:00:46 +0200
commita0c36547372db5421704e4c8f17226a25ea57b7a (patch)
treee42937c3ed0ea44a3e37f7f0a2eeb5486eb3172d /dhall/src
parentb12c312dcdc067982708193cedf43073483e5043 (diff)
Improve test error ergonomics
Diffstat (limited to 'dhall/src')
-rw-r--r--dhall/src/tests.rs10
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),
+ }
}
};
}