mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
Add directory for I/O tests with basic test for file methods.
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user