| 3553 | |
| 3554 | #[test] |
| 3555 | fn test_raise_statement() { |
| 3556 | for test_case in &["raise", "raise a", "raise a from c"] { |
| 3557 | let mut parser = Parser::new(test_case); |
| 3558 | let program = parser.parse().expect("parsing failed"); |
| 3559 | |
| 3560 | insta::with_settings!({ |
| 3561 | description => test_case.to_string(), // the template source code |
| 3562 | snapshot_path => "../../test_data/output/", |
| 3563 | omit_expression => true // do not include the default expression |
| 3564 | }, { |
| 3565 | assert_debug_snapshot!(program); |
| 3566 | }); |
| 3567 | } |
| 3568 | } |
| 3569 | |
| 3570 | #[test] |
| 3571 | fn test_parse_break_continue() { |