Searched refs:check_parse_float (Results 1 – 1 of 1) sorted by relevance
/aosp_15_r20/external/rust/android-crates-io/crates/minimal-lexical/tests/ |
D | parse_tests.rs | 4 fn check_parse_float<F: num::Float>(integer: &str, fraction: &str, exponent: i32, expected: F) { in check_parse_float() function 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("16777218", "", 0, 16777218.0_f32); in parse_f32_test() [all …]
|