Skip to content

Commit

Permalink
Merge pull request zrax#325 from zrax/test_calls
Browse files Browse the repository at this point in the history
Add unit test for basic function calls (py3)
  • Loading branch information
zrax authored Feb 27, 2023
2 parents 00d436f + 9f747e1 commit e922c1c
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 e922c1c

Please sign in to comment.