-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathrustpython_parser__parser__tests__parse_tuples.snap
More file actions
66 lines (66 loc) · 2.07 KB
/
rustpython_parser__parser__tests__parse_tuples.snap
File metadata and controls
66 lines (66 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
source: parser/src/parser.rs
expression: "parse_program(source, \"<test>\").unwrap()"
---
[
Assign(
StmtAssign {
range: 0..11,
targets: [
Tuple(
ExprTuple {
range: 0..4,
elts: [
Name(
ExprName {
range: 0..1,
id: Identifier(
"a",
),
ctx: Store,
},
),
Name(
ExprName {
range: 3..4,
id: Identifier(
"b",
),
ctx: Store,
},
),
],
ctx: Store,
},
),
],
value: Tuple(
ExprTuple {
range: 7..11,
elts: [
Constant(
ExprConstant {
range: 7..8,
value: Int(
4,
),
kind: None,
},
),
Constant(
ExprConstant {
range: 10..11,
value: Int(
5,
),
kind: None,
},
),
],
ctx: Load,
},
),
type_comment: None,
},
),
]