Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c7d55001
Commit
c7d55001
authored
Nov 17, 2014
by
Paul Sokolovsky
Browse files
tests: Add test for file.seek().
parent
838eb1fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/io/file_seek.py
0 → 100644
View file @
c7d55001
f
=
open
(
"io/data/file1"
,
"rb"
)
print
(
f
.
seek
(
6
))
print
(
f
.
read
(
5
))
print
(
f
.
seek
(
0
,
1
))
print
(
f
.
read
(
4
))
print
(
f
.
seek
(
-
6
,
2
))
print
(
f
.
read
(
20
))
print
(
f
.
seek
(
0
,
0
))
print
(
f
.
read
(
5
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment