Skip to content

Commit

Permalink
Add unit test for basic function calls (py3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Feb 27, 2023
1 parent 00d436f commit 9f747e1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
Binary file added tests/compiled/test_calls.3.1.pyc
Binary file not shown.
Binary file added tests/compiled/test_calls.3.10.pyc
Binary file not shown.
Binary file added tests/compiled/test_calls.3.5.pyc
Binary file not shown.
Binary file added tests/compiled/test_calls.3.8.pyc
Binary file not shown.
9 changes: 9 additions & 0 deletions tests/input/test_calls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sys
import os

sys.stdout.write('Test\n')
sys.stdout.write(os.path.join('foo', 'bar'))

print('\n')
print(eval('4 * 13'))
print()
7 changes: 7 additions & 0 deletions tests/tokenized/test_calls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sys <EOL>
import os <EOL>
sys . stdout . write ( 'Test\n' ) <EOL>
sys . stdout . write ( os . path . join ( 'foo' , 'bar' ) ) <EOL>
print ( '\n' ) <EOL>
print ( eval ( '4 * 13' ) ) <EOL>
print ( ) <EOL>

0 comments on commit 9f747e1

Please sign in to comment.