diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-09-11 18:11:29 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-09-12 18:06:49 +0200 |
commit | ca08126b9338bdb43a1795d509a3d2d5d4dd38f7 (patch) | |
tree | 2b0637defd6927464e7c73f8b1c214197bf5525f /src/timetype.rs | |
parent | adfdb13d94de5313198f590da65fdc39c519771a (diff) |
Make error messages in sub-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 9845783..7030c87 100644 --- a/src/timetype.rs +++ b/src/timetype.rs @@ -1913,12 +1913,12 @@ mod test_time_adjustments { } => { let (y, mo, d, h, mi, s) = adjust_times_sub($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 ); } } |