summaryrefslogtreecommitdiff
path: root/tests/cmdline
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-07-11 16:45:30 -0400
committerDan Halbert <halbert@halwitz.org>2018-07-11 16:45:30 -0400
commit7c219600a246d8956d0b23ea3f5d125a820e6b6a (patch)
tree4cf793a66284322d48a8f430815c31cd1c9ffa1d /tests/cmdline
parent4962468ffffac9ec4e36b2b1fc3f132516df3127 (diff)
parent25ae98f07cb3c4488cb955403dfe56b8bb8db6f0 (diff)
WIP: after merge; before testing
Diffstat (limited to 'tests/cmdline')
-rw-r--r--tests/cmdline/cmd_parsetree.py1
-rw-r--r--tests/cmdline/cmd_parsetree.py.exp12
-rw-r--r--tests/cmdline/repl_autocomplete.py3
-rw-r--r--tests/cmdline/repl_autocomplete.py.exp3
4 files changed, 12 insertions, 7 deletions
diff --git a/tests/cmdline/cmd_parsetree.py b/tests/cmdline/cmd_parsetree.py
index 5f698eeae..da36c8070 100644
--- a/tests/cmdline/cmd_parsetree.py
+++ b/tests/cmdline/cmd_parsetree.py
@@ -9,3 +9,4 @@ c = 'a very long str that will not be interned'
d = b'bytes'
e = b'a very long bytes that will not be interned'
f = 123456789012345678901234567890
+g = 123
diff --git a/tests/cmdline/cmd_parsetree.py.exp b/tests/cmdline/cmd_parsetree.py.exp
index d9f81d8d4..12a1bfbe9 100644
--- a/tests/cmdline/cmd_parsetree.py.exp
+++ b/tests/cmdline/cmd_parsetree.py.exp
@@ -1,5 +1,5 @@
----------------
-[ 4] rule(1) (n=8)
+[ 4] rule(1) (n=9)
tok(4)
[ 4] rule(22) (n=4)
id(i)
@@ -25,6 +25,9 @@
[ 11] rule(5) (n=2)
id(f)
[ 11] literal \.\+
+[ 12] rule(5) (n=2)
+ id(g)
+ int(123)
----------------
File cmdline/cmd_parsetree.py, code block '<module>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
@@ -42,6 +45,7 @@ arg names:
bc=27 line=9
bc=32 line=10
bc=37 line=11
+ bc=42 line=12
00 BUILD_TUPLE 0
02 GET_ITER_STACK
03 FOR_ITER 12
@@ -59,8 +63,10 @@ arg names:
34 STORE_NAME e
37 LOAD_CONST_OBJ \.\+
39 STORE_NAME f
-42 LOAD_CONST_NONE
-43 RETURN_VALUE
+42 LOAD_CONST_SMALL_INT 123
+45 STORE_NAME g
+48 LOAD_CONST_NONE
+49 RETURN_VALUE
mem: total=\\d\+, current=\\d\+, peak=\\d\+
stack: \\d\+ out of \\d\+
GC: total: \\d\+, used: \\d\+, free: \\d\+
diff --git a/tests/cmdline/repl_autocomplete.py b/tests/cmdline/repl_autocomplete.py
index a848cab0f..27cad428f 100644
--- a/tests/cmdline/repl_autocomplete.py
+++ b/tests/cmdline/repl_autocomplete.py
@@ -6,5 +6,4 @@ x = '123'
1, x.isdi ()
i = str
i.lowe ('ABC')
-j = None
-j. 
+None. 
diff --git a/tests/cmdline/repl_autocomplete.py.exp b/tests/cmdline/repl_autocomplete.py.exp
index dfb998ff6..75002985e 100644
--- a/tests/cmdline/repl_autocomplete.py.exp
+++ b/tests/cmdline/repl_autocomplete.py.exp
@@ -10,6 +10,5 @@ Use \.\+
>>> i = str
>>> i.lower('ABC')
'abc'
->>> j = None
->>> j.
+>>> None.
>>>