--- a/rust/fpnum/src/lib.rs Tue Oct 16 04:43:02 2018 +0300
+++ b/rust/fpnum/src/lib.rs Tue Oct 16 04:44:11 2018 +0300
@@ -439,7 +439,7 @@
assert!((-z).is_negative);
assert_eq!(n - n, z);
assert_eq!(-n + n, z);
- assert_eq!(z.with_sign_as(-n), -z);
+ assert_eq!(n.with_sign_as(-n), -n);
}
#[test]