Skip to content

Commit

Permalink
remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
TDecking committed Apr 10, 2023
1 parent a732883 commit 65c9c79
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions library/core/tests/num/dec2flt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,3 @@ fn massive_exponent() {
assert_eq!(format!("1e-{max}000").parse(), Ok(0.0));
assert_eq!(format!("1e{max}000").parse(), Ok(f64::INFINITY));
}

#[test]
fn borderline_overflow() {
let mut s = "0.".to_string();
for _ in 0..375 {
s.push('3');
}
// At the time of this writing, this returns Err(..), but this is a bug that should be fixed.
// It makes no sense to enshrine that in a test, the important part is that it doesn't panic.
let _ = s.parse::<f64>();
}

0 comments on commit 65c9c79

Please sign in to comment.