More verbose erroring in test

This commit is contained in:
Matthias Beyer 2018-07-19 20:18:04 +02:00
parent 5b82d53fd2
commit 6e56f469ae

View file

@ -267,8 +267,11 @@ mod tests {
#[test] #[test]
fn test_config() { fn test_config() {
assert!(from_str::<Value>(&get_config()[..]).is_ok()); let val = from_str::<Value>(&get_config()[..]);
assert!(from_str::<Value>(&get_config_devel()[..]).is_ok()); assert!(val.is_ok(), "Config parsing errored: {:?}", val);
let val = from_str::<Value>(&get_config_devel()[..]);
assert!(val.is_ok(), "Config parsing errored: {:?}", val);
} }
} }