From a0c36547372db5421704e4c8f17226a25ea57b7a Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 16 Apr 2019 21:00:46 +0200 Subject: Improve test error ergonomics --- dhall/src/tests.rs | 10 ++++++++-- 1 file 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), + } } }; } -- cgit v1.2.3