From b7024f0f64a29dded802d88f2dfaa64a6eed0df5 Mon Sep 17 00:00:00 2001 From: Rami Ali Date: Thu, 29 Dec 2016 16:54:18 +1100 Subject: [PATCH] tests/cmdline: Improve repl.c autocomplete test coverage. --- tests/cmdline/repl_autocomplete.py | 10 ++++++++++ tests/cmdline/repl_autocomplete.py.exp | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/cmdline/repl_autocomplete.py create mode 100644 tests/cmdline/repl_autocomplete.py.exp diff --git a/tests/cmdline/repl_autocomplete.py b/tests/cmdline/repl_autocomplete.py new file mode 100644 index 0000000000..a848cab0f6 --- /dev/null +++ b/tests/cmdline/repl_autocomplete.py @@ -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.  diff --git a/tests/cmdline/repl_autocomplete.py.exp b/tests/cmdline/repl_autocomplete.py.exp new file mode 100644 index 0000000000..dfb998ff6e --- /dev/null +++ b/tests/cmdline/repl_autocomplete.py.exp @@ -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. +>>>