Adds support for CONTAINS_OP opcode
Mentioned in: - #190 - #191 - #195
This commit is contained in:
BIN
tests/compiled/contains_op.3.9.pyc
Normal file
BIN
tests/compiled/contains_op.3.9.pyc
Normal file
Binary file not shown.
8
tests/input/contains_op.py
Normal file
8
tests/input/contains_op.py
Normal file
@@ -0,0 +1,8 @@
|
||||
a = 10
|
||||
b = [10, 20, 30]
|
||||
|
||||
if a in b:
|
||||
pass
|
||||
|
||||
if a not in b:
|
||||
pass
|
9
tests/tokenized/contains_op.txt
Normal file
9
tests/tokenized/contains_op.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
a = 10 <EOL>
|
||||
b = [ 10 , 20 , 30 ] <EOL>
|
||||
if a in b : <EOL>
|
||||
<INDENT>
|
||||
pass <EOL>
|
||||
<OUTDENT>
|
||||
if a not in b : <EOL>
|
||||
<INDENT>
|
||||
pass <EOL>
|
Reference in New Issue
Block a user