rust/fpnum/src/lib.rs
changeset 13947 2717a5289d88
parent 13946 2ee07e751171
child 13948 cf28d7a2b7fe
--- 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]