diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-07-19 20:18:04 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-08-26 04:24:57 +0200 |
commit | 6e56f469aea4988e6650b991dcc5db166d265d86 (patch) | |
tree | 015a2e9f48def355244aaa24bdaa311b6eb629e4 /bin/core/imag-init | |
parent | 5b82d53fd29294ac598d3e80fcee0e7b27f59c0c (diff) |
More verbose erroring in test
Diffstat (limited to 'bin/core/imag-init')
-rw-r--r-- | bin/core/imag-init/src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs index de809128..ef899630 100644 --- a/bin/core/imag-init/src/main.rs +++ b/bin/core/imag-init/src/main.rs @@ -267,8 +267,11 @@ mod tests { #[test] fn test_config() { - assert!(from_str::<Value>(&get_config()[..]).is_ok()); - assert!(from_str::<Value>(&get_config_devel()[..]).is_ok()); + let val = from_str::<Value>(&get_config()[..]); + assert!(val.is_ok(), "Config parsing errored: {:?}", val); + + let val = from_str::<Value>(&get_config_devel()[..]); + assert!(val.is_ok(), "Config parsing errored: {:?}", val); } } |