diff --git a/tests/cmdline/repl_cont.py b/tests/cmdline/repl_cont.py
index 06c445d1288bd71a06ec77b4f5e61db9cef046ac..e41d46aceb7381cc1587cdfa44b0343ba2beb32e 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 1f8f9f5faccfb39a8f368e4e6aba6a9c81f5b8bb..185754799d78117aac71f4ab29b32aa3bad92672 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"