diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-09-11 18:11:16 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-09-12 18:06:49 +0200 |
commit | adfdb13d94de5313198f590da65fdc39c519771a (patch) | |
tree | 01ab049dfc9496a889ba6c7adcc27a18dc535e80 /src/timetype.rs | |
parent | 1fe9b7f8f1d91730fc11246c2e4caa2b9257ec3c (diff) |
Make error messages in add-adjustment tests more verbose
Diffstat (limited to 'src/timetype.rs')
-rw-r--r-- | src/timetype.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/timetype.rs b/src/timetype.rs index 0876cbf..9845783 100644 --- a/src/timetype.rs +++ b/src/timetype.rs @@ -1893,12 +1893,12 @@ mod test_time_adjustments { } => { let (y, mo, d, h, mi, s) = adjust_times_add($y, $mo, $d, $h, $m, $s); - assert_eq!($then_y , y ); - assert_eq!($then_mo, mo); - assert_eq!($then_d , d ); - assert_eq!($then_h , h ); - assert_eq!($then_m , mi); - assert_eq!($then_s , s ); + assert_eq!($then_y , y , "Failed: y should be {} but is {}", $then_y , y ); + assert_eq!($then_mo, mo, "Failed: mo should be {} but is {}", $then_mo, mo); + assert_eq!($then_d , d , "Failed: d should be {} but is {}", $then_d , d ); + assert_eq!($then_h , h , "Failed: h should be {} but is {}", $then_h , h ); + assert_eq!($then_m , mi, "Failed: m should be {} but is {}", $then_m , mi); + assert_eq!($then_s , s , "Failed: s should be {} but is {}", $then_s , s ); } } |