mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 13:40:16 +00:00
add read on eof test
This commit is contained in:
parent
b0948a9554
commit
ced52e8dda
@ -52,5 +52,8 @@ assert ( f.read() == "123456" )
|
|||||||
f.seek(3)
|
f.seek(3)
|
||||||
assert ( f.read() == "456" )
|
assert ( f.read() == "456" )
|
||||||
|
|
||||||
|
# nothing more to read (eof)
|
||||||
|
assert( f.read() == "")
|
||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
os.remove('123.txt')
|
os.remove('123.txt')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user