summaryrefslogtreecommitdiffstatshomepage
path: root/tests/io/file1.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-19 18:46:21 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-19 18:46:21 +0200
commit9954b4b99d9119ea55b1c204b12bad1e7b45589b (patch)
treee255bbc57931fa3ab338e876d359e138639bd6ff /tests/io/file1.py
parent8c3858b01623f9527b57b13c44ff97c67bafb00b (diff)
downloadmicropython-9954b4b99d9119ea55b1c204b12bad1e7b45589b.tar.gz
micropython-9954b4b99d9119ea55b1c204b12bad1e7b45589b.zip
Add directory for I/O tests with basic test for file methods.
Diffstat (limited to 'tests/io/file1.py')
-rw-r--r--tests/io/file1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/io/file1.py b/tests/io/file1.py
new file mode 100644
index 0000000000..8552f535bd
--- /dev/null
+++ b/tests/io/file1.py
@@ -0,0 +1,4 @@
+f = open("io/data/file1")
+print(f.read(5))
+print(f.readline())
+print(f.read())