kopia lustrzana https://github.com/micropython/micropython-lib
os: Add simple read/write test.
rodzic
effbf07c9e
commit
ef8aa989d7
|
@ -0,0 +1,6 @@
|
|||
import os
|
||||
|
||||
|
||||
assert os.write(1, "hello\n") == len("hello\n")
|
||||
data = os.read(0, 256)
|
||||
os.write(2, "read: %s\n" % data)
|
Ładowanie…
Reference in New Issue