Add parenthesized flag to ExprTuple and ExprGenerator (#9614)

This commit is contained in:
Micha Reiser
2024-02-26 16:35:20 +01:00
committed by GitHub
parent ab4bd71755
commit 77c5561646
65 changed files with 391 additions and 139 deletions

View File

@@ -1505,4 +1505,20 @@ u"foo" f"bar {baz} really" u"bar" "no"
let parse_ast = parse_suite(r#"x = "\N{BACKSPACE}another cool trick""#).unwrap();
insta::assert_debug_snapshot!(parse_ast);
}
#[test]
fn test_tuple() {
let parse_ast = parse_suite(
r#"
a,b
(a,b)
()
(a,)
((a,b))
"#
.trim(),
)
.unwrap();
insta::assert_debug_snapshot!(parse_ast);
}
}