]> git.lizzy.rs Git - rust.git/blob - src/etc/test-float-parse/short-decimals.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / etc / test-float-parse / short-decimals.rs
1 mod _common;
2
3 use _common::validate;
4
5 fn main() {
6     // Skip e = 0 because small-u32 already does those.
7     for e in 1..301 {
8         for i in 0..10000 {
9             // If it ends in zeros, the parser will strip those (and adjust the exponent),
10             // which almost always (except for exponents near +/- 300) result in an input
11             // equivalent to something we already generate in a different way.
12             if i % 10 == 0 {
13                 continue;
14             }
15             validate(&format!("{}e{}", i, e));
16             validate(&format!("{}e-{}", i, e));
17         }
18     }
19 }