Lines Matching refs:token_count
201 fn token_count(p: &str) -> usize { in literal_suffix() function
205 assert_eq!(token_count("999u256"), 1); in literal_suffix()
206 assert_eq!(token_count("999r#u256"), 3); in literal_suffix()
207 assert_eq!(token_count("1."), 1); in literal_suffix()
208 assert_eq!(token_count("1.f32"), 3); in literal_suffix()
209 assert_eq!(token_count("1.0_0"), 1); in literal_suffix()
210 assert_eq!(token_count("1._0"), 3); in literal_suffix()
211 assert_eq!(token_count("1._m"), 3); in literal_suffix()
212 assert_eq!(token_count("\"\"s"), 1); in literal_suffix()
213 assert_eq!(token_count("r\"\"r"), 1); in literal_suffix()
214 assert_eq!(token_count("b\"\"b"), 1); in literal_suffix()
215 assert_eq!(token_count("br\"\"br"), 1); in literal_suffix()
216 assert_eq!(token_count("r#\"\"#r"), 1); in literal_suffix()
217 assert_eq!(token_count("'c'c"), 1); in literal_suffix()
218 assert_eq!(token_count("b'b'b"), 1); in literal_suffix()
219 assert_eq!(token_count("0E"), 1); in literal_suffix()
220 assert_eq!(token_count("0o0A"), 1); in literal_suffix()
221 assert_eq!(token_count("0E--0"), 4); in literal_suffix()
222 assert_eq!(token_count("0.0ECMA"), 1); in literal_suffix()