Skip to content

Commit fc973df

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

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -611,18 +611,19 @@ from typing import Final
611611
string: Final = "abc"
612612
integer: Final = 123
613613
floating: Final = 3.14
614-
comp: Final = 3 + 4j
614+
boolean: Final = True
615+
none: Final = None
615616

616617
def test(x: str) -> str:
617-
return f"{string}{integer}{floating}{comp}{x}{comp}{floating}{integer}{string}{x}{string}{integer}{floating}{comp}{x}"
618+
return f"{string}{integer}{floating}{boolean}{none}{x}{none}{boolean}{floating}{integer}{string}{x}{string}{integer}{floating}{boolean}{none}{x}"
618619

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

623624
L0:
624-
r0 = 'abc1233.14(3+4j)'
625-
r1 = '(3+4j)3.14123abc'
626-
r2 = 'abc1233.14(3+4j)'
625+
r0 = 'abc1233.14TrueNone'
626+
r1 = 'NoneTrue3.14123abc'
627+
r2 = 'abc1233.14TrueNone'
627628
r3 = CPyStr_Build(6, r0, x, r1, x, r2, x)
628629
return r3

0 commit comments

Comments
 (0)