Skip to content

Commit

Permalink
Add test case for #437
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Feb 15, 2024
1 parent 787090e commit 7929dbe
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
Binary file added tests/compiled/op_precedence.2.7.pyc
Binary file not shown.
Binary file added tests/compiled/op_precedence.3.10.pyc
Binary file not shown.
Binary file added tests/compiled/op_precedence.3.5.pyc
Binary file not shown.
8 changes: 8 additions & 0 deletions tests/input/op_precedence.py
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions tests/tokenized/op_precedence.txt
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 7929dbe

Please sign in to comment.