From: Ian Jackson Date: Fri, 16 Jul 2021 19:35:27 +0000 (+0100) Subject: zcoord: Improve a test failure message X-Git-Tag: otter-0.7.2~58 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4adcaf56b88c40aaa95e86f6ac2f689718cc3592;p=otter.git zcoord: Improve a test failure message Signed-off-by: Ian Jackson --- diff --git a/base/zcoord.rs b/base/zcoord.rs index d95e7dc0..0cdf0572 100644 --- a/base/zcoord.rs +++ b/base/zcoord.rs @@ -925,7 +925,7 @@ mod test { let got = self.i.next().unwrap(); assert_eq!(got.to_string(), exp); assert_eq!(got, bf(exp)); - assert!(got > self.last); + assert!(got > self.last, "{:?} <= {:?} !", &got, &self.last); self.last = got.clone(); } }