summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdline/repl_cont.py3
-rw-r--r--tests/cmdline/repl_cont.py.exp4
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/cmdline/repl_cont.py b/tests/cmdline/repl_cont.py
index e41d46ace..921274b88 100644
--- a/tests/cmdline/repl_cont.py
+++ b/tests/cmdline/repl_cont.py
@@ -29,3 +29,6 @@ def f(x):
print(x)

f(3)
+if1=1
+if1 = 2
+print(if1)
diff --git a/tests/cmdline/repl_cont.py.exp b/tests/cmdline/repl_cont.py.exp
index 74f0f4197..834c18a4d 100644
--- a/tests/cmdline/repl_cont.py.exp
+++ b/tests/cmdline/repl_cont.py.exp
@@ -50,4 +50,8 @@ two
... 
>>> f(3)
3
+>>> if1=1
+>>> if1 = 2
+>>> print(if1)
+2
>>>