()
| 3280 | |
| 3281 | #[test] |
| 3282 | fn duplicate_ss() { |
| 3283 | let ParseError { |
| 3284 | location, |
| 3285 | message, |
| 3286 | is_warning, |
| 3287 | } = Parser::new( |
| 3288 | "function %blocks() system_v { |
| 3289 | ss0 = explicit_slot 8 |
| 3290 | ss0 = explicit_slot 8", |
| 3291 | ) |
| 3292 | .parse_function() |
| 3293 | .unwrap_err(); |
| 3294 | |
| 3295 | assert_eq!(location.line_number, 3); |
| 3296 | assert_eq!(message, "duplicate entity: ss0"); |
| 3297 | assert!(!is_warning); |
| 3298 | } |
| 3299 | |
| 3300 | #[test] |
| 3301 | fn duplicate_gv() { |
nothing calls this directly
no test coverage detected