Add directory for I/O tests with basic test for file methods.

This commit is contained in:
Paul Sokolovsky 2014-01-19 18:46:21 +02:00
parent 8c3858b016
commit 9954b4b99d
3 changed files with 8 additions and 1 deletions

3
tests/io/data/file1 Normal file
View File

@ -0,0 +1,3 @@
longer line1
line2
line3

4
tests/io/file1.py Normal file
View File

@ -0,0 +1,4 @@
f = open("io/data/file1")
print(f.read(5))
print(f.readline())
print(f.read())

View File

@ -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