Add directory for I/O tests with basic test for file methods.
This commit is contained in:
parent
8c3858b016
commit
9954b4b99d
3
tests/io/data/file1
Normal file
3
tests/io/data/file1
Normal file
@ -0,0 +1,3 @@
|
||||
longer line1
|
||||
line2
|
||||
line3
|
4
tests/io/file1.py
Normal file
4
tests/io/file1.py
Normal file
@ -0,0 +1,4 @@
|
||||
f = open("io/data/file1")
|
||||
print(f.read(5))
|
||||
print(f.readline())
|
||||
print(f.read())
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user