Lines Matching refs:suffix
148 fn test_int(s: &str, value: u64, suffix: &str) {
152 assert_eq!(lit.suffix(), suffix);
155 test_int(&again, value, suffix);
188 fn test_float(s: &str, value: f64, suffix: &str) {
192 assert_eq!(lit.suffix(), suffix);
195 test_float(&again, value, suffix);
226 fn suffix() {
230 Lit::Str(lit) => lit.suffix().to_owned(),
231 Lit::ByteStr(lit) => lit.suffix().to_owned(),
232 Lit::Byte(lit) => lit.suffix().to_owned(),
233 Lit::Char(lit) => lit.suffix().to_owned(),
234 Lit::Int(lit) => lit.suffix().to_owned(),
235 Lit::Float(lit) => lit.suffix().to_owned(),