| 3712 | |
| 3713 | #[test] |
| 3714 | fn test_attribute_ref() { |
| 3715 | for test_case in &["a.b", "a.b.c", "a.b_c", "a.b.c.d"] { |
| 3716 | let mut parser = Parser::new(test_case); |
| 3717 | let program = parser.parse().expect("parsing failed"); |
| 3718 | |
| 3719 | insta::with_settings!({ |
| 3720 | description => test_case.to_string(), // the template source code |
| 3721 | snapshot_path => "../../test_data/output/", |
| 3722 | omit_expression => true // do not include the default expression |
| 3723 | }, { |
| 3724 | assert_debug_snapshot!(program); |
| 3725 | }); |
| 3726 | } |
| 3727 | } |
| 3728 | |
| 3729 | #[test] |
| 3730 | fn parse_call() { |