| 3521 | |
| 3522 | #[test] |
| 3523 | fn test_parse_del_stmt() { |
| 3524 | for test_case in &["del a", "del a, b", "del a, b, "] { |
| 3525 | let mut parser = Parser::new(test_case); |
| 3526 | let program = parser.parse().expect("parsing failed"); |
| 3527 | |
| 3528 | insta::with_settings!({ |
| 3529 | description => test_case.to_string(), // the template source code |
| 3530 | snapshot_path => "../../test_data/output/", |
| 3531 | omit_expression => true // do not include the default expression |
| 3532 | }, { |
| 3533 | assert_debug_snapshot!(program); |
| 3534 | }); |
| 3535 | } |
| 3536 | } |
| 3537 | |
| 3538 | #[test] |
| 3539 | fn parse_yield_statement() { |