Lines Matching refs:test_int
141 fn test_int(s: &str, value: u64, suffix: &str) { in ints() function
148 test_int(&again, value, suffix); in ints()
155 test_int("5", 5, ""); in ints()
156 test_int("5u32", 5, "u32"); in ints()
157 test_int("0E", 0, "E"); in ints()
158 test_int("0ECMA", 0, "ECMA"); in ints()
159 test_int("0o0A", 0, "A"); in ints()
160 test_int("5_0", 50, ""); in ints()
161 test_int("5_____0_____", 50, ""); in ints()
162 test_int("0x7f", 127, ""); in ints()
163 test_int("0x7F", 127, ""); in ints()
164 test_int("0b1001", 9, ""); in ints()
165 test_int("0o73", 59, ""); in ints()
166 test_int("0x7Fu8", 127, "u8"); in ints()
167 test_int("0b1001i8", 9, "i8"); in ints()
168 test_int("0o73u32", 59, "u32"); in ints()
169 test_int("0x__7___f_", 127, ""); in ints()
170 test_int("0x__7___F_", 127, ""); in ints()
171 test_int("0b_1_0__01", 9, ""); in ints()
172 test_int("0o_7__3", 59, ""); in ints()
173 test_int("0x_7F__u8", 127, "u8"); in ints()
174 test_int("0b__10__0_1i8", 9, "i8"); in ints()
175 test_int("0o__7__________________3u32", 59, "u32"); in ints()
176 test_int("0e1\u{5c5}", 0, "e1\u{5c5}"); in ints()