summaryrefslogtreecommitdiff
path: root/tests/cmdline
diff options
context:
space:
mode:
authorAlex March <alex.march.dev@gmail.com>2016-02-16 13:36:18 +0000
committerDamien George <damien.p.george@gmail.com>2016-02-17 08:56:15 +0000
commit69d9e7d27d62d54c0625d4181c80478b0313384d (patch)
treee9d149ecc4c3eebaaffc69889ac787947b207fda /tests/cmdline
parentdfc35afba14a29e00affabb6f496d453e005b8de (diff)
py/repl: Check for an identifier char after the keyword.
- As described in the #1850. - Add cmdline tests.
Diffstat (limited to 'tests/cmdline')
-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
>>>