Skip to content

Commit ce0b511

Browse files
committed
init nestied formatting test case
1 parent 8a35c8f commit ce0b511

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/snippets/builtin_format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ def test_zero_padding():
2727
assert f'{1024:_}' == '1_024'
2828
assert f'{65536:,}' == '65,536'
2929
assert f'{4294967296:,}' == '4,294,967,296'
30+
assert 'F' == "{0:{base}}".format(15, base="X")

0 commit comments

Comments
 (0)