Skip to content

Commit

Permalink
Rollup merge of rust-lang#110158 - TDecking:obsolete_test, r=ChrisDenton
Browse files Browse the repository at this point in the history
Remove obsolete test case

This test case was supposed to cover issue rust-lang#31109 at some point.
It never did anything, as the issue was still open at the time of its creation.
When the issue was resolved, the `issue31109` test case was created,
making the existence of this test pointless.
  • Loading branch information
Dylan-DPC authored Apr 14, 2023
2 parents e94eeb0 + 65c9c79 commit 69ab280
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 69ab280

Please sign in to comment.