| 3569 | |
| 3570 | #[test] |
| 3571 | fn test_parse_break_continue() { |
| 3572 | for test_case in &["break", "continue"] { |
| 3573 | let mut parser = Parser::new(test_case); |
| 3574 | let program = parser.parse().expect("parsing failed"); |
| 3575 | |
| 3576 | insta::with_settings!({ |
| 3577 | description => test_case.to_string(), // the template source code |
| 3578 | snapshot_path => "../../test_data/output/", |
| 3579 | omit_expression => true // do not include the default expression |
| 3580 | }, { |
| 3581 | assert_debug_snapshot!(program); |
| 3582 | }); |
| 3583 | } |
| 3584 | } |
| 3585 | |
| 3586 | #[test] |
| 3587 | fn test_parse_bool_op() { |