| 3617 | |
| 3618 | #[test] |
| 3619 | fn test_named_expression() { |
| 3620 | { |
| 3621 | let test_case = &"(a := b)"; |
| 3622 | let mut parser = Parser::new(test_case); |
| 3623 | let program = parser.parse().expect("parsing failed"); |
| 3624 | |
| 3625 | insta::with_settings!({ |
| 3626 | description => test_case.to_string(), // the template source code |
| 3627 | snapshot_path => "../../test_data/output/", |
| 3628 | omit_expression => true // do not include the default expression |
| 3629 | }, { |
| 3630 | assert_debug_snapshot!(program); |
| 3631 | }); |
| 3632 | } |
| 3633 | } |
| 3634 | |
| 3635 | #[test] |
| 3636 | fn test_tuple() { |