Searched refs:check_parse_float (Results 1 - 2 of 2) sorted by relevance
/third_party/rust/crates/minimal-lexical/tests/ |
H A D | parse_tests.rs | 4 fn check_parse_float<F: num::Float>(integer: &str, fraction: &str, exponent: i32, expected: F) { in check_parse_float() functions 12 check_parse_float("", "", 0, 0.0_f32); in parse_f32_test() 13 check_parse_float("1", "2345", 0, 1.2345_f32); in parse_f32_test() 14 check_parse_float("12", "345", 0, 12.345_f32); in parse_f32_test() 15 check_parse_float("12345", "6789", 0, 12345.6789_f32); in parse_f32_test() 16 check_parse_float("1", "2345", 10, 1.2345e10_f32); in parse_f32_test() 17 check_parse_float("1", "2345", -38, 1.2345e-38_f32); in parse_f32_test() 21 check_parse_float("16777216", "", 0, 16777216.0_f32); in parse_f32_test() 22 check_parse_float("16777217", "", 0, 16777216.0_f32); in parse_f32_test() 23 check_parse_float("1677721 in parse_f32_test() [all...] |
/third_party/rust/crates/minimal-lexical/examples/ |
H A D | simple.rs | 207 let check_parse_float = in main() 210 check_parse_float("1.0e7", 1.0e7f64, ""); in main() 211 check_parse_float("12345.67", 12345.67, ""); in main() 212 check_parse_float("12345.67 narnia", 12345.67, " narnia"); in main()
|
Completed in 1 milliseconds