diff options
-rw-r--r-- | tests/io/data/file1 | 3 | ||||
-rw-r--r-- | tests/io/file1.py | 4 | ||||
-rwxr-xr-x | tests/run-tests | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/tests/io/data/file1 b/tests/io/data/file1 new file mode 100644 index 0000000000..e08206337f --- /dev/null +++ b/tests/io/data/file1 @@ -0,0 +1,3 @@ +longer line1 +line2 +line3 diff --git a/tests/io/file1.py b/tests/io/file1.py new file mode 100644 index 0000000000..8552f535bd --- /dev/null +++ b/tests/io/file1.py @@ -0,0 +1,4 @@ +f = open("io/data/file1") +print(f.read(5)) +print(f.readline()) +print(f.read()) diff --git a/tests/run-tests b/tests/run-tests index 7ab1281337..318920b5ee 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -10,7 +10,7 @@ numpassed=0 numfailed=0 namefailed= -for infile in basics/*.py +for infile in basics/*.py io/*.py do basename=`basename $infile .py` outfile=${basename}.out |