]>
Commit | Line | Data |
---|---|---|
7453a54e | 1 | mod _common; |
223e47cc | 2 | |
7453a54e | 3 | use _common::validate; |
dfeec247 | 4 | use std::char; |
85aaf69f | 5 | |
223e47cc | 6 | fn main() { |
7453a54e SL |
7 | for n in 0..10 { |
8 | let digit = char::from_digit(n, 10).unwrap(); | |
9 | let mut s = "0.".to_string(); | |
10 | for _ in 0..400 { | |
11 | s.push(digit); | |
12 | if s.parse::<f64>().is_ok() { | |
13 | validate(&s); | |
14 | } | |
15 | } | |
970d7e83 | 16 | } |
223e47cc | 17 | } |