tests/cmdline: Improve repl.c autocomplete test coverage.

This commit is contained in:
Rami Ali 2016-12-29 16:54:18 +11:00 committed by Damien George
parent f397e1fdf0
commit b7024f0f64
2 changed files with 25 additions and 0 deletions

View 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. 

View File

@ -0,0 +1,15 @@
MicroPython \.\+ version
Use \.\+
>>> # tests for autocompletion
>>> import sys
>>> not_exist.
>>> not_exist
>>> x = '123'
>>> 1, x.isdigit()
(1, True)
>>> i = str
>>> i.lower('ABC')
'abc'
>>> j = None
>>> j.
>>>