Add test case for #437
This commit is contained in:
BIN
tests/compiled/op_precedence.2.7.pyc
Normal file
BIN
tests/compiled/op_precedence.2.7.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/op_precedence.3.10.pyc
Normal file
BIN
tests/compiled/op_precedence.3.10.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/op_precedence.3.5.pyc
Normal file
BIN
tests/compiled/op_precedence.3.5.pyc
Normal file
Binary file not shown.
8
tests/input/op_precedence.py
Normal file
8
tests/input/op_precedence.py
Normal file
@@ -0,0 +1,8 @@
|
||||
def foo(a, b, c):
|
||||
return c - (a + b)
|
||||
|
||||
def bar(a, b, c, d):
|
||||
return a / ((b ** c) * d)
|
||||
|
||||
def baz(a, b, c, d):
|
||||
return a - ((b ^ c) + d)
|
11
tests/tokenized/op_precedence.txt
Normal file
11
tests/tokenized/op_precedence.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
def foo ( a , b , c ) : <EOL>
|
||||
<INDENT>
|
||||
return c - ( a + b ) <EOL>
|
||||
<OUTDENT>
|
||||
def bar ( a , b , c , d ) : <EOL>
|
||||
<INDENT>
|
||||
return a / ( b ** c * d ) <EOL>
|
||||
<OUTDENT>
|
||||
def baz ( a , b , c , d ) : <EOL>
|
||||
<INDENT>
|
||||
return a - ( ( b ^ c ) + d ) <EOL>
|
Reference in New Issue
Block a user