Browse Source

Remove an unneeded assert.

Dan Barella 7 năm trước cách đây
mục cha
commit
ecb0816c83
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      src/cast.rs

+ 0 - 5
src/cast.rs

@@ -657,9 +657,4 @@ fn float_to_integer_checks_overflow() {
 
     // Expect the overflow to be caught
     assert_eq!(source.to_i32(), None);
-
-    // Specifically make sure we didn't silently let the overflow through
-    // (This line is mostly for humans -- the robots should catch any problem
-    // on the line above).
-    assert!(source.to_i32() != Some(-2147483648));
 }