fix test
authoralfadur
Tue, 16 Oct 2018 04:44:11 +0300
changeset 13931 2717a5289d88
parent 13930 2ee07e751171
child 13932 cf28d7a2b7fe
fix test
rust/fpnum/src/lib.rs
--- 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]