Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 4f4e84e

Browse files
authored
Merge pull request #52 from juanjux/feature/bip002_int_tests
Updated integration tests for BIP-002. Added Lambda test
2 parents a4c2f73 + dbdeee3 commit 4f4e84e

17 files changed

+294
-0
lines changed

tests/booleanop.py.uast

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Module {
3131
. . . }
3232
. . . Children: {
3333
. . . . 0: Compare {
34+
. . . . . Roles: Unannotated
3435
. . . . . StartPosition: {
3536
. . . . . . Offset: 0
3637
. . . . . . Line: 1
@@ -46,6 +47,7 @@ Module {
4647
. . . . . }
4748
. . . . . Children: {
4849
. . . . . . 0: Compare.comparators {
50+
. . . . . . . Roles: Unannotated
4951
. . . . . . . Properties: {
5052
. . . . . . . . promotedPropertyList: true
5153
. . . . . . . }
@@ -88,6 +90,7 @@ Module {
8890
. . . . . . . }
8991
. . . . . . }
9092
. . . . . . 2: Compare.ops {
93+
. . . . . . . Roles: Unannotated
9194
. . . . . . . Properties: {
9295
. . . . . . . . promotedPropertyList: true
9396
. . . . . . . }
@@ -129,6 +132,7 @@ Module {
129132
. . . }
130133
. . . Children: {
131134
. . . . 0: Compare {
135+
. . . . . Roles: Unannotated
132136
. . . . . StartPosition: {
133137
. . . . . . Offset: 7
134138
. . . . . . Line: 2
@@ -144,6 +148,7 @@ Module {
144148
. . . . . }
145149
. . . . . Children: {
146150
. . . . . . 0: Compare.comparators {
151+
. . . . . . . Roles: Unannotated
147152
. . . . . . . Properties: {
148153
. . . . . . . . promotedPropertyList: true
149154
. . . . . . . }
@@ -186,6 +191,7 @@ Module {
186191
. . . . . . . }
187192
. . . . . . }
188193
. . . . . . 2: Compare.ops {
194+
. . . . . . . Roles: Unannotated
189195
. . . . . . . Properties: {
190196
. . . . . . . . promotedPropertyList: true
191197
. . . . . . . }
@@ -298,6 +304,7 @@ Module {
298304
. . . }
299305
. . . Children: {
300306
. . . . 0: Compare {
307+
. . . . . Roles: Unannotated
301308
. . . . . StartPosition: {
302309
. . . . . . Offset: 20
303310
. . . . . . Line: 4
@@ -313,6 +320,7 @@ Module {
313320
. . . . . }
314321
. . . . . Children: {
315322
. . . . . . 0: Compare.comparators {
323+
. . . . . . . Roles: Unannotated
316324
. . . . . . . Properties: {
317325
. . . . . . . . promotedPropertyList: true
318326
. . . . . . . }
@@ -372,6 +380,7 @@ Module {
372380
. . . . . . . }
373381
. . . . . . }
374382
. . . . . . 2: Compare.ops {
383+
. . . . . . . Roles: Unannotated
375384
. . . . . . . Properties: {
376385
. . . . . . . . promotedPropertyList: true
377386
. . . . . . . }
@@ -427,6 +436,7 @@ Module {
427436
. . . }
428437
. . . Children: {
429438
. . . . 0: Compare {
439+
. . . . . Roles: Unannotated
430440
. . . . . StartPosition: {
431441
. . . . . . Offset: 32
432442
. . . . . . Line: 5
@@ -442,6 +452,7 @@ Module {
442452
. . . . . }
443453
. . . . . Children: {
444454
. . . . . . 0: Compare.comparators {
455+
. . . . . . . Roles: Unannotated
445456
. . . . . . . Properties: {
446457
. . . . . . . . promotedPropertyList: true
447458
. . . . . . . }
@@ -501,6 +512,7 @@ Module {
501512
. . . . . . . }
502513
. . . . . . }
503514
. . . . . . 2: Compare.ops {
515+
. . . . . . . Roles: Unannotated
504516
. . . . . . . Properties: {
505517
. . . . . . . . promotedPropertyList: true
506518
. . . . . . . }
@@ -556,6 +568,7 @@ Module {
556568
. . . }
557569
. . . Children: {
558570
. . . . 0: Compare {
571+
. . . . . Roles: Unannotated
559572
. . . . . StartPosition: {
560573
. . . . . . Offset: 42
561574
. . . . . . Line: 6
@@ -571,6 +584,7 @@ Module {
571584
. . . . . }
572585
. . . . . Children: {
573586
. . . . . . 0: Compare.comparators {
587+
. . . . . . . Roles: Unannotated
574588
. . . . . . . Properties: {
575589
. . . . . . . . promotedPropertyList: true
576590
. . . . . . . }
@@ -630,6 +644,7 @@ Module {
630644
. . . . . . . }
631645
. . . . . . }
632646
. . . . . . 2: Compare.ops {
647+
. . . . . . . Roles: Unannotated
633648
. . . . . . . Properties: {
634649
. . . . . . . . promotedPropertyList: true
635650
. . . . . . . }

tests/classdef.py.uast

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ Module {
474474
. . . . . . . . . }
475475
. . . . . . . . }
476476
. . . . . . . . 2: FunctionDef.decorator_list {
477+
. . . . . . . . . Roles: Unannotated
477478
. . . . . . . . . Properties: {
478479
. . . . . . . . . . promotedPropertyList: true
479480
. . . . . . . . . }
@@ -667,6 +668,7 @@ Module {
667668
. . . . . . . . . }
668669
. . . . . . . . }
669670
. . . . . . . . 2: FunctionDef.decorator_list {
671+
. . . . . . . . . Roles: Unannotated
670672
. . . . . . . . . Properties: {
671673
. . . . . . . . . . promotedPropertyList: true
672674
. . . . . . . . . }

tests/classdef_metaclass_py3.py.uast

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ Module {
4949
. . . . . }
5050
. . . . }
5151
. . . . 1: ClassDef.keywords {
52+
. . . . . Roles: Unannotated
5253
. . . . . Properties: {
5354
. . . . . . promotedPropertyList: true
5455
. . . . . }
5556
. . . . . Children: {
5657
. . . . . . 0: keyword {
58+
. . . . . . . Roles: Unannotated
5759
. . . . . . . TOKEN "metaclass"
5860
. . . . . . . StartPosition: {
5961
. . . . . . . . Offset: 18
@@ -182,11 +184,13 @@ Module {
182184
. . . . . }
183185
. . . . }
184186
. . . . 2: ClassDef.keywords {
187+
. . . . . Roles: Unannotated
185188
. . . . . Properties: {
186189
. . . . . . promotedPropertyList: true
187190
. . . . . }
188191
. . . . . Children: {
189192
. . . . . . 0: keyword {
193+
. . . . . . . Roles: Unannotated
190194
. . . . . . . TOKEN "metaclass"
191195
. . . . . . . StartPosition: {
192196
. . . . . . . . Offset: 0

tests/comprehension_dict.py.uast

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Module {
3131
. . . }
3232
. . . Children: {
3333
. . . . 0: DictComp {
34+
. . . . . Roles: Unannotated
3435
. . . . . StartPosition: {
3536
. . . . . . Offset: 0
3637
. . . . . . Line: 1

tests/comprehension_list.py.uast

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Module {
3131
. . . }
3232
. . . Children: {
3333
. . . . 0: ListComp {
34+
. . . . . Roles: Unannotated
3435
. . . . . StartPosition: {
3536
. . . . . . Offset: 1
3637
. . . . . . Line: 1
@@ -117,6 +118,7 @@ Module {
117118
. . . . . . . }
118119
. . . . . . }
119120
. . . . . . 1: ListComp.generators {
121+
. . . . . . . Roles: Unannotated
120122
. . . . . . . Properties: {
121123
. . . . . . . . promotedPropertyList: true
122124
. . . . . . . }
@@ -281,6 +283,7 @@ Module {
281283
. . . }
282284
. . . Children: {
283285
. . . . 0: ListComp {
286+
. . . . . Roles: Unannotated
284287
. . . . . StartPosition: {
285288
. . . . . . Offset: 32
286289
. . . . . . Line: 2
@@ -367,6 +370,7 @@ Module {
367370
. . . . . . . }
368371
. . . . . . }
369372
. . . . . . 1: ListComp.generators {
373+
. . . . . . . Roles: Unannotated
370374
. . . . . . . Properties: {
371375
. . . . . . . . promotedPropertyList: true
372376
. . . . . . . }

tests/comprehension_set.py.uast

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Module {
3131
. . . }
3232
. . . Children: {
3333
. . . . 0: SetComp {
34+
. . . . . Roles: Unannotated
3435
. . . . . StartPosition: {
3536
. . . . . . Offset: 0
3637
. . . . . . Line: 1

tests/except.py.uast

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Module {
3131
. . . }
3232
. . . Children: {
3333
. . . . 0: Try.body {
34+
. . . . . Roles: Unannotated
3435
. . . . . Properties: {
3536
. . . . . . promotedPropertyList: true
3637
. . . . . }
@@ -160,6 +161,7 @@ Module {
160161
. . . . . }
161162
. . . . }
162163
. . . . 1: Try.finalbody {
164+
. . . . . Roles: Unannotated
163165
. . . . . Properties: {
164166
. . . . . . promotedPropertyList: true
165167
. . . . . }
@@ -235,6 +237,7 @@ Module {
235237
. . . . . }
236238
. . . . }
237239
. . . . 2: Try.handlers {
240+
. . . . . Roles: Unannotated
238241
. . . . . Properties: {
239242
. . . . . . promotedPropertyList: true
240243
. . . . . }

tests/functiondef_decorated.py.uast

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Module {
6666
. . . . . }
6767
. . . . }
6868
. . . . 2: FunctionDef.decorator_list {
69+
. . . . . Roles: Unannotated
6970
. . . . . Properties: {
7071
. . . . . . promotedPropertyList: true
7172
. . . . . }
@@ -180,6 +181,7 @@ Module {
180181
. . . . . }
181182
. . . . }
182183
. . . . 2: FunctionDef.decorator_list {
184+
. . . . . Roles: Unannotated
183185
. . . . . Properties: {
184186
. . . . . . promotedPropertyList: true
185187
. . . . . }

tests/functiondef_simple.py.uast

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ Module {
303303
. . . . . . . }
304304
. . . . . . . Children: {
305305
. . . . . . . . 0: Yield {
306+
. . . . . . . . . Roles: Unannotated
306307
. . . . . . . . . StartPosition: {
307308
. . . . . . . . . . Offset: 0
308309
. . . . . . . . . . Line: 6

tests/ifexpression.py.uast

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Module {
117117
. . . . . . . }
118118
. . . . . . . Children: {
119119
. . . . . . . . 0: Compare.comparators {
120+
. . . . . . . . . Roles: Unannotated
120121
. . . . . . . . . Properties: {
121122
. . . . . . . . . . promotedPropertyList: true
122123
. . . . . . . . . }
@@ -159,6 +160,7 @@ Module {
159160
. . . . . . . . . }
160161
. . . . . . . . }
161162
. . . . . . . . 2: Compare.ops {
163+
. . . . . . . . . Roles: Unannotated
162164
. . . . . . . . . Properties: {
163165
. . . . . . . . . . promotedPropertyList: true
164166
. . . . . . . . . }

0 commit comments

Comments
 (0)