Skip to content

Commit ba03d50

Browse files
Update irbuild-str.test
1 parent ceb0e03 commit ba03d50

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,17 +611,18 @@ from typing import Final
611611
string: Final = "abc"
612612
integer: Final = 123
613613
floating: Final = 3.14
614+
comp: Final = 3 + 4j
614615

615616
def test(x: str) -> str:
616-
return f"{string}{integer}{floating}{x}{floating}{integer}{string}{x}{string}{integer}{floating}{x}"
617+
return f"{string}{integer}{floating}{comp}{x}{comp}{floating}{integer}{string}{x}{string}{integer}{floating}{comp}{x}"
617618

618619
[out]
619620
def test(x):
620621
x, r0, r1, r2, r3 :: str
621622

622623
L0:
623-
r0 = 'abc1233.14'
624-
r1 = '3.14123abc'
625-
r2 = 'abc1233.14'
624+
r0 = 'abc1233.14(3+4j)'
625+
r1 = '(3+4j)3.14123abc'
626+
r2 = 'abc1233.14(3+4j)'
626627
r3 = CPyStr_Build(6, r0, x, r1, x, r2, x)
627628
return r3

0 commit comments

Comments
 (0)