Skip to content

Commit b7024f0

Browse files
flowergrassdpgeorge
authored andcommitted
tests/cmdline: Improve repl.c autocomplete test coverage.
1 parent f397e1f commit b7024f0

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

tests/cmdline/repl_autocomplete.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# tests for autocompletion
2+
impo sys
3+
not_exist. 
4+
not_exist 
5+
x = '123'
6+
1, x.isdi ()
7+
i = str
8+
i.lowe ('ABC')
9+
j = None
10+
j. 
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
MicroPython \.\+ version
2+
Use \.\+
3+
>>> # tests for autocompletion
4+
>>> import sys
5+
>>> not_exist.
6+
>>> not_exist
7+
>>> x = '123'
8+
>>> 1, x.isdigit()
9+
(1, True)
10+
>>> i = str
11+
>>> i.lower('ABC')
12+
'abc'
13+
>>> j = None
14+
>>> j.
15+
>>>

0 commit comments

Comments
 (0)