Skip to content

Commit 2ff6915

Browse files
Update run-strings.test
1 parent 65cc7f7 commit 2ff6915

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

mypyc/test-data/run-strings.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,3 +1137,11 @@ def test_optional_ne() -> None:
11371137
assert ne_s_opt_s_opt('y', 'x')
11381138
assert ne_s_opt_s_opt(None, 'x')
11391139
assert ne_s_opt_s_opt('x', None)
1140+
1141+
[case testConstantFoldFormatArgs]
1142+
from typing import Final
1143+
1144+
FMT: Final = "{} {}"
1145+
1146+
def test_format() -> str:
1147+
assert FMT.format(400 + 20, "roll" + "up") == "420 rollup"

0 commit comments

Comments
 (0)