| 3585 | |
| 3586 | #[test] |
| 3587 | fn test_parse_bool_op() { |
| 3588 | for test_case in &["a or b", "a and b", "a or b or c", "a and b or c"] { |
| 3589 | let mut parser = Parser::new(test_case); |
| 3590 | let program = parser.parse().expect("parsing failed"); |
| 3591 | |
| 3592 | insta::with_settings!({ |
| 3593 | description => test_case.to_string(), // the template source code |
| 3594 | snapshot_path => "../../test_data/output/", |
| 3595 | omit_expression => true // do not include the default expression |
| 3596 | }, { |
| 3597 | assert_debug_snapshot!(program); |
| 3598 | }); |
| 3599 | } |
| 3600 | } |
| 3601 | |
| 3602 | #[test] |
| 3603 | fn test_parse_unary_op() { |