Skip to content

Commit 06788bf

Browse files
committedFeb 17, 2017
update test.py
1 parent f8d6b63 commit 06788bf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
 

‎tests/test.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
with break continue del exec return pass print raise global assert lambda yield
1212
for while if elif else import from as try except finally and in is not or
1313

14+
from test import var as name
15+
1416
yield from
1517

1618
def functionname
@@ -61,11 +63,13 @@ async def Test
6163

6264
# Numbers
6365

64-
0 1 2 9 10 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77 1023434 0x0
66+
0 1 2 9 10 0x1f .3 12.34 0j 124j 34.2E-3 0b10 0o77 1023434 0x0
67+
1_1 1_1.2_2 1_2j 0x_1f 0x1_f 34_56e-3 34_56e+3_1 0o7_7
6568

6669
# Erroneous numbers
6770

68-
077 100L 0xfffffffL 0L 08 0xk 0x 0b102 0o78 0o123LaB
71+
077 100L 0xfffffffL 0L 08 0xk 0x 0b102 0o78 0o123LaB
72+
0_ 0_1 0_x1f 0x1f_ 0_b77 0b77_ .2_ 1_j
6973

7074
# Strings
7175

@@ -103,6 +107,10 @@ async def Test
103107
"${test} ${test ${test}aname $$$ $test+nope"
104108
b"${test} ${test ${test}aname $$$ $test+nope"
105109

110+
f"{var}...{arr[123]} normal {var['{'] // 0xff} \"xzcb\" 'xzcb' {var['}'] + 1} text"
111+
f"{expr1 if True or False else expr2} wow {','.join(c.lower() for c in 'asdf')}"
112+
f"hello {expr:.2f} yes {(lambda: 0b1)():#03x} lol {var!r}"
113+
106114
# Doctests.
107115

108116
"""

0 commit comments

Comments
 (0)
Please sign in to comment.