Permalink
Browse files

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

  • Loading branch information...
1 parent f397e1f commit b7024f0f64a29dded802d88f2dfaa64a6eed0df5 @flowergrass flowergrass committed with dpgeorge Dec 29, 2016
Showing with 25 additions and 0 deletions.
  1. +10 −0 tests/cmdline/repl_autocomplete.py
  2. +15 −0 tests/cmdline/repl_autocomplete.py.exp
@@ -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. 
@@ -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.
+>>>

0 comments on commit b7024f0

Please sign in to comment.