summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--tests/cmdline/repl_cont.py10
-rw-r--r--tests/cmdline/repl_cont.py.exp20
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/cmdline/repl_cont.py b/tests/cmdline/repl_cont.py
index 06c445d128..e41d46aceb 100644
--- a/tests/cmdline/repl_cont.py
+++ b/tests/cmdline/repl_cont.py
@@ -1,6 +1,16 @@
# check REPL allows to continue input
1 \
+ 2
+'"'
+"'"
+'\''
+"\""
+'\'('
+"\"("
+print("\"(")
+print('\'(')
+print("\'(")
+print('\"(')
'abc'
"abc"
'''abc
diff --git a/tests/cmdline/repl_cont.py.exp b/tests/cmdline/repl_cont.py.exp
index 1f8f9f5fac..185754799d 100644
--- a/tests/cmdline/repl_cont.py.exp
+++ b/tests/cmdline/repl_cont.py.exp
@@ -3,6 +3,26 @@ Micro Python \.\+ version
>>> 1 \\\\
... + 2
3
+>>> '"'
+'"'
+>>> "'"
+"'"
+>>> '\\\\''
+"'"
+>>> "\\\\""
+'"'
+>>> '\\\\'('
+"'("
+>>> "\\\\"("
+'"('
+>>> print("\\\\"(")
+"(
+>>> print('\\\\'(')
+'(
+>>> print("\\\\'(")
+'(
+>>> print('\\\\"(')
+"(
>>> 'abc'
'abc'
>>> "abc"