From 9f747e188cd2ee41c5749f01632780775057fbfb Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Mon, 27 Feb 2023 11:59:01 -0800 Subject: [PATCH] Add unit test for basic function calls (py3) --- tests/compiled/test_calls.3.1.pyc | Bin 0 -> 353 bytes tests/compiled/test_calls.3.10.pyc | Bin 0 -> 285 bytes tests/compiled/test_calls.3.5.pyc | Bin 0 -> 303 bytes tests/compiled/test_calls.3.8.pyc | Bin 0 -> 283 bytes tests/input/test_calls.py | 9 +++++++++ tests/tokenized/test_calls.txt | 7 +++++++ 6 files changed, 16 insertions(+) create mode 100644 tests/compiled/test_calls.3.1.pyc create mode 100644 tests/compiled/test_calls.3.10.pyc create mode 100644 tests/compiled/test_calls.3.5.pyc create mode 100644 tests/compiled/test_calls.3.8.pyc create mode 100644 tests/input/test_calls.py create mode 100644 tests/tokenized/test_calls.txt diff --git a/tests/compiled/test_calls.3.1.pyc b/tests/compiled/test_calls.3.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..63dd6e5d7e3624ebe040df8abe8cace8fcf9f9b5 GIT binary patch literal 353 zcmYk0KTpFj5XIl6`GcY$b!DPs#6X2$M2JrS158~|h>eJ4;wbikIxzKfSL)fIg5^8^ zp5NJbkIiZQUG4iG|5hn{FX62uC7U3$IWl2G(16Kc7El>>1UhO>FgZ*CC0>r*uU$eF zKZPZ91yx3o9tr^@O`h6H8V(Y8;6n1V_Mzs5(3^AVeC=i?(KW{*Z&nwptLyeeFu8u~ zITPW0vVBmFL;C4!9)jjvyr~QC35*-Ym2 eto4`EmSgMN52x7byEvC`BsJ7zOFGYLTG9b!gFNT} literal 0 HcmV?d00001 diff --git a/tests/compiled/test_calls.3.10.pyc b/tests/compiled/test_calls.3.10.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a4886aa06122acd46fd5bd4d371487e2c7e44928 GIT binary patch literal 285 zcmYjJy-LJD5T42YWQli{g59-e;UQXz_yi(ol}6(29ww~WkliSEV3o?ZxGR07ZLNHT z1Hp-D?t}S$W`@sArx_4F(%
Gu#0At~I__{Tc)Mc4nhn{FatBsd`6#~9wpPA^ zAUJnQhMAvln15ytr_=l``&qpM_~aTxGF@|d%c406Oy$Ugl3;*Fph=(wwgeh`Lue$L z6q;ue+yAkGPXCMwCWBVHX1~Y;5I?zHWMBLdH=Fd%_>h;$qjP2QQ1y}Wjk=hh%+Jmj zlbHCmkHYz=e9&$PF@5dpV501*@Dyd^>NcibU$-Gj^HSLl^ap%)FW*OjPy1!vc0*Y1 g_rcCNoLoLTJy>%^?DhpqL4}ynvB+sgzjR+iumAu6 literal 0 HcmV?d00001 diff --git a/tests/compiled/test_calls.3.8.pyc b/tests/compiled/test_calls.3.8.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5a68f9d87b1ea538fb7506fd7c839bdcfb4ba79a GIT binary patch literal 283 zcmYjJy-LJD5Z=lDWQn;}u)FpwJVZ+opFjk)Nh9%g#e_8*vK!?NtWxCfte^lJ?Np(tF@gc~Bm3^-Oy3I$kJCtGfk9RQoWg<5Q- z;YRGHtuk^Luga!I4KVqE0X5ySMfy#x?0O^bY=~LGpS&;lW7#2O8+ATEo}ZpAH1e?P25$cZ%QB!|O9Lk_<|n?$t$ literal 0 HcmV?d00001 diff --git a/tests/input/test_calls.py b/tests/input/test_calls.py new file mode 100644 index 0000000..c2ec4d0 --- /dev/null +++ b/tests/input/test_calls.py @@ -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() diff --git a/tests/tokenized/test_calls.txt b/tests/tokenized/test_calls.txt new file mode 100644 index 0000000..3300e23 --- /dev/null +++ b/tests/tokenized/test_calls.txt @@ -0,0 +1,7 @@ +import sys +import os +sys . stdout . write ( 'Test\n' ) +sys . stdout . write ( os . path . join ( 'foo' , 'bar' ) ) +print ( '\n' ) +print ( eval ( '4 * 13' ) ) +print ( )