Skip to content

Commit e42afb6

Browse files
author
Philip Guo
committed
make regression tests more standardized
1 parent e4918a6 commit e42afb6

10 files changed

Lines changed: 769 additions & 665 deletions

‎v3/example-code/list-comp.golden‎

Lines changed: 96 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@
3939
{
4040
"ordered_globals": [
4141
"ppl",
42+
"_[1]",
4243
"e"
4344
],
4445
"stdout": "",
4546
"func_name": "<module>",
4647
"stack_to_render": [],
4748
"globals": {
49+
"_[1]": [
50+
"REF",
51+
2
52+
],
4853
"e": "Alice",
4954
"ppl": [
5055
"REF",
@@ -58,6 +63,10 @@
5863
"Bob",
5964
"Carol",
6065
"Doug"
66+
],
67+
"2": [
68+
"LIST",
69+
"Alice!!"
6170
]
6271
},
6372
"line": 2,
@@ -66,12 +75,17 @@
6675
{
6776
"ordered_globals": [
6877
"ppl",
78+
"_[1]",
6979
"e"
7080
],
7181
"stdout": "",
7282
"func_name": "<module>",
7383
"stack_to_render": [],
7484
"globals": {
85+
"_[1]": [
86+
"REF",
87+
2
88+
],
7589
"e": "Bob",
7690
"ppl": [
7791
"REF",
@@ -85,6 +99,11 @@
8599
"Bob",
86100
"Carol",
87101
"Doug"
102+
],
103+
"2": [
104+
"LIST",
105+
"Alice!!",
106+
"Bob!!"
88107
]
89108
},
90109
"line": 2,
@@ -93,12 +112,17 @@
93112
{
94113
"ordered_globals": [
95114
"ppl",
115+
"_[1]",
96116
"e"
97117
],
98118
"stdout": "",
99119
"func_name": "<module>",
100120
"stack_to_render": [],
101121
"globals": {
122+
"_[1]": [
123+
"REF",
124+
2
125+
],
102126
"e": "Carol",
103127
"ppl": [
104128
"REF",
@@ -112,6 +136,12 @@
112136
"Bob",
113137
"Carol",
114138
"Doug"
139+
],
140+
"2": [
141+
"LIST",
142+
"Alice!!",
143+
"Bob!!",
144+
"Carol!!"
115145
]
116146
},
117147
"line": 2,
@@ -120,12 +150,17 @@
120150
{
121151
"ordered_globals": [
122152
"ppl",
153+
"_[1]",
123154
"e"
124155
],
125156
"stdout": "",
126157
"func_name": "<module>",
127158
"stack_to_render": [],
128159
"globals": {
160+
"_[1]": [
161+
"REF",
162+
2
163+
],
129164
"e": "Doug",
130165
"ppl": [
131166
"REF",
@@ -139,6 +174,13 @@
139174
"Bob",
140175
"Carol",
141176
"Doug"
177+
],
178+
"2": [
179+
"LIST",
180+
"Alice!!",
181+
"Bob!!",
182+
"Carol!!",
183+
"Doug!!"
142184
]
143185
},
144186
"line": 2,
@@ -188,22 +230,27 @@
188230
"ppl",
189231
"e",
190232
"excited_ppl",
191-
"x"
233+
"x",
234+
"_[2]"
192235
],
193236
"stdout": "",
194237
"func_name": "<module>",
195238
"stack_to_render": [],
196239
"globals": {
197-
"e": "Doug",
240+
"x": "Alice",
198241
"ppl": [
199242
"REF",
200243
1
201244
],
245+
"e": "Doug",
202246
"excited_ppl": [
203247
"REF",
204248
2
205249
],
206-
"x": "Alice"
250+
"_[2]": [
251+
"REF",
252+
3
253+
]
207254
},
208255
"heap": {
209256
"1": [
@@ -219,6 +266,10 @@
219266
"Bob!!",
220267
"Carol!!",
221268
"Doug!!"
269+
],
270+
"3": [
271+
"LIST",
272+
5
222273
]
223274
},
224275
"line": 3,
@@ -229,22 +280,27 @@
229280
"ppl",
230281
"e",
231282
"excited_ppl",
232-
"x"
283+
"x",
284+
"_[2]"
233285
],
234286
"stdout": "",
235287
"func_name": "<module>",
236288
"stack_to_render": [],
237289
"globals": {
238-
"e": "Doug",
290+
"x": "Bob",
239291
"ppl": [
240292
"REF",
241293
1
242294
],
295+
"e": "Doug",
243296
"excited_ppl": [
244297
"REF",
245298
2
246299
],
247-
"x": "Bob"
300+
"_[2]": [
301+
"REF",
302+
3
303+
]
248304
},
249305
"heap": {
250306
"1": [
@@ -260,6 +316,11 @@
260316
"Bob!!",
261317
"Carol!!",
262318
"Doug!!"
319+
],
320+
"3": [
321+
"LIST",
322+
5,
323+
3
263324
]
264325
},
265326
"line": 3,
@@ -270,22 +331,27 @@
270331
"ppl",
271332
"e",
272333
"excited_ppl",
273-
"x"
334+
"x",
335+
"_[2]"
274336
],
275337
"stdout": "",
276338
"func_name": "<module>",
277339
"stack_to_render": [],
278340
"globals": {
279-
"e": "Doug",
341+
"x": "Carol",
280342
"ppl": [
281343
"REF",
282344
1
283345
],
346+
"e": "Doug",
284347
"excited_ppl": [
285348
"REF",
286349
2
287350
],
288-
"x": "Carol"
351+
"_[2]": [
352+
"REF",
353+
3
354+
]
289355
},
290356
"heap": {
291357
"1": [
@@ -301,6 +367,12 @@
301367
"Bob!!",
302368
"Carol!!",
303369
"Doug!!"
370+
],
371+
"3": [
372+
"LIST",
373+
5,
374+
3,
375+
5
304376
]
305377
},
306378
"line": 3,
@@ -311,22 +383,27 @@
311383
"ppl",
312384
"e",
313385
"excited_ppl",
314-
"x"
386+
"x",
387+
"_[2]"
315388
],
316389
"stdout": "",
317390
"func_name": "<module>",
318391
"stack_to_render": [],
319392
"globals": {
320-
"e": "Doug",
393+
"x": "Doug",
321394
"ppl": [
322395
"REF",
323396
1
324397
],
398+
"e": "Doug",
325399
"excited_ppl": [
326400
"REF",
327401
2
328402
],
329-
"x": "Doug"
403+
"_[2]": [
404+
"REF",
405+
3
406+
]
330407
},
331408
"heap": {
332409
"1": [
@@ -342,6 +419,13 @@
342419
"Bob!!",
343420
"Carol!!",
344421
"Doug!!"
422+
],
423+
"3": [
424+
"LIST",
425+
5,
426+
3,
427+
5,
428+
4
345429
]
346430
},
347431
"line": 3,

0 commit comments

Comments
 (0)