diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-15 23:28:39 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-27 00:04:20 +0300 |
commit | ed07d035d52764b3b02bfa8488f2e0445c28ea2f (patch) | |
tree | 927e8eb791e246018bfd12fad9294b5f6d112651 /tests/unicode | |
parent | f5f6c3b7920457e99b71cf58cfb3cb0be0e4e890 (diff) | |
download | micropython-ed07d035d52764b3b02bfa8488f2e0445c28ea2f.tar.gz micropython-ed07d035d52764b3b02bfa8488f2e0445c28ea2f.zip |
tests: Add basic test for unicode file i/o.
Diffstat (limited to 'tests/unicode')
-rw-r--r-- | tests/unicode/data/utf-8_1.txt | 1 | ||||
-rw-r--r-- | tests/unicode/file1.py | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/unicode/data/utf-8_1.txt b/tests/unicode/data/utf-8_1.txt new file mode 100644 index 0000000000..d84c480d1d --- /dev/null +++ b/tests/unicode/data/utf-8_1.txt @@ -0,0 +1 @@ +Привет diff --git a/tests/unicode/file1.py b/tests/unicode/file1.py new file mode 100644 index 0000000000..554e886743 --- /dev/null +++ b/tests/unicode/file1.py @@ -0,0 +1,4 @@ +f = open("unicode/data/utf-8_1.txt") +l = f.readline() +print(l) +print(len(l)) |