()
| 1267 | } |
| 1268 | |
| 1269 | #[test] |
| 1270 | fn init_modifier_backtrack() { |
| 1271 | // `static x = {` must match with type token `static` (the JS engine |
| 1272 | // backtracks the modifier loop) — harmless downstream, but collected. |
| 1273 | let f = facts("; static x = {1};\n; static struct cmd t[] = { {0} };"); |
| 1274 | assert!(f.init_tokens.contains(&"static".to_string())); |
| 1275 | assert!(f.init_tokens.contains(&"cmd".to_string())); |
| 1276 | } |
| 1277 | |
| 1278 | #[test] |