Skip to content

Commit 59bfc51

Browse files
yt2byouknowone
authored andcommitted
Add test
1 parent 134355e commit 59bfc51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extra_tests/snippets/builtin_format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def test_zero_padding():
6666
assert f"{123.456:+011,}" == "+00,123.456"
6767
assert f"{1234:.3g}" == "1.23e+03"
6868
assert f"{1234567:.6G}" == "1.23457E+06"
69+
assert f'{"🐍":4}' == "🐍 "
70+
6971
assert_raises(ValueError, "{:,o}".format, 1, _msg="ValueError: Cannot specify ',' with 'o'.")
7072
assert_raises(ValueError, "{:_n}".format, 1, _msg="ValueError: Cannot specify '_' with 'n'.")
7173
assert_raises(ValueError, "{:,o}".format, 1.0, _msg="ValueError: Cannot specify ',' with 'o'.")

0 commit comments

Comments
 (0)