kopia lustrzana https://github.com/micropython/micropython
tests/cmdline: Add test for REPL auto-indent.
Signed-off-by: Damien George <damien@micropython.org>pull/8391/head
rodzic
6d401be4dd
commit
6bec5c4da5
|
@ -0,0 +1,16 @@
|
|||
# tests for autoindent
|
||||
if 1:
|
||||
print(1)
|
||||
|
||||
|
||||
|
||||
if 0:
|
||||
print(2)
|
||||
else:
|
||||
print(3)
|
||||
|
||||
if 0:
|
||||
print(4)
|
||||
else:
|
||||
print(5)
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
MicroPython \.\+ version
|
||||
Use \.\+
|
||||
>>> # tests for autoindent
|
||||
>>> if 1:
|
||||
... print(1)
|
||||
...
|
||||
...
|
||||
...
|
||||
1
|
||||
>>> if 0:
|
||||
... print(2)
|
||||
... else:
|
||||
... print(3)
|
||||
...
|
||||
3
|
||||
>>> if 0:
|
||||
... print(4)
|
||||
... else:
|
||||
... print(5)
|
||||
...
|
||||
5
|
||||
>>>
|
Ładowanie…
Reference in New Issue