From 7c24f5528582ff1f50a0b24dd360e65342b1fd0c Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 15 Jan 2020 12:37:02 -0600 Subject: [PATCH] tests/cmdline/repl_inspect: Add new test for -i option. This adds a new test to verify that the inspect (-i) command line option works. --- tests/cmdline/repl_inspect.py | 2 ++ tests/cmdline/repl_inspect.py.exp | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/cmdline/repl_inspect.py create mode 100644 tests/cmdline/repl_inspect.py.exp diff --git a/tests/cmdline/repl_inspect.py b/tests/cmdline/repl_inspect.py new file mode 100644 index 0000000000..5a7564a3c2 --- /dev/null +++ b/tests/cmdline/repl_inspect.py @@ -0,0 +1,2 @@ +# cmdline: -c print("test") -i +# -c option combined with -i option results in REPL diff --git a/tests/cmdline/repl_inspect.py.exp b/tests/cmdline/repl_inspect.py.exp new file mode 100644 index 0000000000..59f734b2f6 --- /dev/null +++ b/tests/cmdline/repl_inspect.py.exp @@ -0,0 +1,6 @@ +test +MicroPython \.\+ version +Use \.\+ +>>> # cmdline: -c print("test") -i +>>> # -c option combined with -i option results in REPL +>>>