Skip to content

Commit 8f17a4c

Browse files
author
Adrien Chauve
committed
Add new f-string test case
1 parent 25043d4 commit 8f17a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-data/unit/check-expressions.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,7 @@ u'%s' % (u'abc',)
11671167
f'foobar'
11681168
f'{"foobar"}'
11691169
f'foo{"bar"}'
1170+
f'.{1}.'
11701171
a: str
11711172
a = f'foobar'
11721173
a = f'{"foobar"}'
@@ -1178,7 +1179,6 @@ f' {1 + ""}'
11781179
[out]
11791180
main:2: error: Unsupported operand types for + ("int" and "str")
11801181
main:3: error: Unsupported operand types for + ("int" and "str")
1181-
main:3: error: Unsupported operand types for + ("str" and "int")
11821182

11831183

11841184
-- Lambdas

0 commit comments

Comments
 (0)