tests/cmdline: Improve repl.c autocomplete test coverage.
This commit is contained in:
parent
f397e1fdf0
commit
b7024f0f64
10
tests/cmdline/repl_autocomplete.py
Normal file
10
tests/cmdline/repl_autocomplete.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# tests for autocompletion
|
||||||
|
impo sys
|
||||||
|
not_exist.
|
||||||
|
not_exist
|
||||||
|
x = '123'
|
||||||
|
1, x.isdi ()
|
||||||
|
i = str
|
||||||
|
i.lowe ('ABC')
|
||||||
|
j = None
|
||||||
|
j.
|
15
tests/cmdline/repl_autocomplete.py.exp
Normal file
15
tests/cmdline/repl_autocomplete.py.exp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
MicroPython \.\+ version
|
||||||
|
Use \.\+
|
||||||
|
>>> # tests for autocompletion
|
||||||
|
>>> import sys
|
||||||
|
>>> not_exist.[K[K[K[K[K[K[K[K[K[K
|
||||||
|
>>> not_exist[K[K[K[K[K[K[K[K[K
|
||||||
|
>>> x = '123'
|
||||||
|
>>> 1, x.isdigit()
|
||||||
|
(1, True)
|
||||||
|
>>> i = str
|
||||||
|
>>> i.lower('ABC')
|
||||||
|
'abc'
|
||||||
|
>>> j = None
|
||||||
|
>>> j.[K[K
|
||||||
|
>>>
|
Loading…
Reference in New Issue
Block a user