Skip to content

Commit 7961ec9

Browse files
committed
Update parser snapshot tests with new BigInt Debug repr
1 parent 25ecd7c commit 7961ec9

7 files changed

+22
-120
lines changed

parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_equals.snap

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: parser/src/fstring.rs
33
expression: parse_ast
4+
45
---
56
Located {
67
location: Location {
@@ -24,14 +25,7 @@ Located {
2425
custom: (),
2526
node: Constant {
2627
value: Int(
27-
BigInt {
28-
sign: Plus,
29-
data: BigUint {
30-
data: [
31-
42,
32-
],
33-
},
34-
},
28+
42,
3529
),
3630
kind: None,
3731
},
@@ -48,14 +42,7 @@ Located {
4842
custom: (),
4943
node: Constant {
5044
value: Int(
51-
BigInt {
52-
sign: Plus,
53-
data: BigUint {
54-
data: [
55-
42,
56-
],
57-
},
58-
},
45+
42,
5946
),
6047
kind: None,
6148
},

parser/src/snapshots/rustpython_parser__fstring__tests__parse_fstring_not_equals.snap

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: parser/src/fstring.rs
33
expression: parse_ast
4+
45
---
56
Located {
67
location: Location {
@@ -24,14 +25,7 @@ Located {
2425
custom: (),
2526
node: Constant {
2627
value: Int(
27-
BigInt {
28-
sign: Plus,
29-
data: BigUint {
30-
data: [
31-
1,
32-
],
33-
},
34-
},
28+
1,
3529
),
3630
kind: None,
3731
},
@@ -48,14 +42,7 @@ Located {
4842
custom: (),
4943
node: Constant {
5044
value: Int(
51-
BigInt {
52-
sign: Plus,
53-
data: BigUint {
54-
data: [
55-
2,
56-
],
57-
},
58-
},
45+
2,
5946
),
6047
kind: None,
6148
},

parser/src/snapshots/rustpython_parser__parser__tests__parse_double_list_comprehension.snap

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: parser/src/parser.rs
33
expression: parse_ast
4+
45
---
56
Located {
67
location: Location {
@@ -124,14 +125,7 @@ Located {
124125
custom: (),
125126
node: Constant {
126127
value: Int(
127-
BigInt {
128-
sign: Plus,
129-
data: BigUint {
130-
data: [
131-
5,
132-
],
133-
},
134-
},
128+
5,
135129
),
136130
kind: None,
137131
},
@@ -169,14 +163,7 @@ Located {
169163
custom: (),
170164
node: Constant {
171165
value: Int(
172-
BigInt {
173-
sign: Plus,
174-
data: BigUint {
175-
data: [
176-
10,
177-
],
178-
},
179-
},
166+
10,
180167
),
181168
kind: None,
182169
},

parser/src/snapshots/rustpython_parser__parser__tests__parse_if_elif_else.snap

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: parser/src/parser.rs
33
expression: parse_ast
4+
45
---
56
[
67
Located {
@@ -18,14 +19,7 @@ expression: parse_ast
1819
custom: (),
1920
node: Constant {
2021
value: Int(
21-
BigInt {
22-
sign: Plus,
23-
data: BigUint {
24-
data: [
25-
1,
26-
],
27-
},
28-
},
22+
1,
2923
),
3024
kind: None,
3125
},
@@ -46,14 +40,7 @@ expression: parse_ast
4640
custom: (),
4741
node: Constant {
4842
value: Int(
49-
BigInt {
50-
sign: Plus,
51-
data: BigUint {
52-
data: [
53-
10,
54-
],
55-
},
56-
},
43+
10,
5744
),
5845
kind: None,
5946
},
@@ -77,14 +64,7 @@ expression: parse_ast
7764
custom: (),
7865
node: Constant {
7966
value: Int(
80-
BigInt {
81-
sign: Plus,
82-
data: BigUint {
83-
data: [
84-
2,
85-
],
86-
},
87-
},
67+
2,
8868
),
8969
kind: None,
9070
},
@@ -105,14 +85,7 @@ expression: parse_ast
10585
custom: (),
10686
node: Constant {
10787
value: Int(
108-
BigInt {
109-
sign: Plus,
110-
data: BigUint {
111-
data: [
112-
20,
113-
],
114-
},
115-
},
88+
20,
11689
),
11790
kind: None,
11891
},
@@ -136,14 +109,7 @@ expression: parse_ast
136109
custom: (),
137110
node: Constant {
138111
value: Int(
139-
BigInt {
140-
sign: Plus,
141-
data: BigUint {
142-
data: [
143-
30,
144-
],
145-
},
146-
},
112+
30,
147113
),
148114
kind: None,
149115
},

parser/src/snapshots/rustpython_parser__parser__tests__parse_kwargs.snap

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: parser/src/parser.rs
33
expression: parse_ast
4+
45
---
56
[
67
Located {
@@ -62,14 +63,7 @@ expression: parse_ast
6263
custom: (),
6364
node: Constant {
6465
value: Int(
65-
BigInt {
66-
sign: Plus,
67-
data: BigUint {
68-
data: [
69-
2,
70-
],
71-
},
72-
},
66+
2,
7367
),
7468
kind: None,
7569
},

parser/src/snapshots/rustpython_parser__parser__tests__parse_print_2.snap

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: parser/src/parser.rs
33
expression: parse_ast
4+
45
---
56
[
67
Located {
@@ -50,14 +51,7 @@ expression: parse_ast
5051
custom: (),
5152
node: Constant {
5253
value: Int(
53-
BigInt {
54-
sign: Plus,
55-
data: BigUint {
56-
data: [
57-
2,
58-
],
59-
},
60-
},
54+
2,
6155
),
6256
kind: None,
6357
},

parser/src/snapshots/rustpython_parser__parser__tests__parse_tuples.snap

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: parser/src/parser.rs
33
expression: parse_program(&source).unwrap()
4+
45
---
56
[
67
Located {
@@ -62,14 +63,7 @@ expression: parse_program(&source).unwrap()
6263
custom: (),
6364
node: Constant {
6465
value: Int(
65-
BigInt {
66-
sign: Plus,
67-
data: BigUint {
68-
data: [
69-
4,
70-
],
71-
},
72-
},
66+
4,
7367
),
7468
kind: None,
7569
},
@@ -82,14 +76,7 @@ expression: parse_program(&source).unwrap()
8276
custom: (),
8377
node: Constant {
8478
value: Int(
85-
BigInt {
86-
sign: Plus,
87-
data: BigUint {
88-
data: [
89-
5,
90-
],
91-
},
92-
},
79+
5,
9380
),
9481
kind: None,
9582
},

0 commit comments

Comments
 (0)