summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cmdline/repl_cont.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cmdline/repl_cont.py')
-rw-r--r--tests/cmdline/repl_cont.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/cmdline/repl_cont.py b/tests/cmdline/repl_cont.py
new file mode 100644
index 0000000000..66a484ce3d
--- /dev/null
+++ b/tests/cmdline/repl_cont.py
@@ -0,0 +1,21 @@
+# check REPL allows to continue input
+1 \
++ 2
+'abc'
+"abc"
+'''abc
+def'''
+"""ABC
+DEF"""
+print(
+1 + 2)
+l = [1,
+2]
+print(l)
+d = {1:'one',
+2:'two'}
+print(d[2])
+def f(x):
+ print(x)
+
+f(3)