summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cmdline
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cmdline')
-rw-r--r--tests/cmdline/repl_emacs_check.py3
-rw-r--r--tests/cmdline/repl_emacs_check.py.exp6
-rw-r--r--tests/cmdline/repl_emacs_keys.py10
-rw-r--r--tests/cmdline/repl_emacs_keys.py.exp18
4 files changed, 37 insertions, 0 deletions
diff --git a/tests/cmdline/repl_emacs_check.py b/tests/cmdline/repl_emacs_check.py
new file mode 100644
index 0000000000..3209716229
--- /dev/null
+++ b/tests/cmdline/repl_emacs_check.py
@@ -0,0 +1,3 @@
+# Check for emacs keys in REPL
+t = +11
+t == 2
diff --git a/tests/cmdline/repl_emacs_check.py.exp b/tests/cmdline/repl_emacs_check.py.exp
new file mode 100644
index 0000000000..d3834429bd
--- /dev/null
+++ b/tests/cmdline/repl_emacs_check.py.exp
@@ -0,0 +1,6 @@
+Micro Python \.\+ version
+>>> # Check for emacs keys in REPL
+>>> t = \.\+
+>>> t == 2
+True
+>>>
diff --git a/tests/cmdline/repl_emacs_keys.py b/tests/cmdline/repl_emacs_keys.py
new file mode 100644
index 0000000000..ae9e6e14af
--- /dev/null
+++ b/tests/cmdline/repl_emacs_keys.py
@@ -0,0 +1,10 @@
+# REPL tests of GNU-ish readline navigation
+# history buffer navigation
+1
+2
+3
+
+
+# input line motion
+t = 12
+'boofar fbar'
diff --git a/tests/cmdline/repl_emacs_keys.py.exp b/tests/cmdline/repl_emacs_keys.py.exp
new file mode 100644
index 0000000000..8bbf08bd12
--- /dev/null
+++ b/tests/cmdline/repl_emacs_keys.py.exp
@@ -0,0 +1,18 @@
+Micro Python \.\+ version
+>>> # REPL tests of GNU-ish readline navigation
+>>> # history buffer navigation
+>>> 1
+1
+>>> 2
+2
+>>> 3
+3
+>>> 321
+1
+>>> 1323
+3
+>>> # input line motion
+>>> t = 121
+>>> \.\+
+'foobar'
+>>>