int formatting function #5039

Example - https://i.imgur.com/wDGFNci.png
This commit is contained in:
Andrej730
2024-12-05 15:52:23 +05:00
parent 9cf34f9d8c
commit 13106d255c
3 changed files with 8 additions and 1 deletions
@@ -54,6 +54,8 @@ class TestFormat:
def test_number_formatting(self):
assert subject.format("round(123, 5)") == "125"
assert subject.format('round("123", 5)') == "125"
assert subject.format("int(123.123)") == "123"
assert subject.format("int(123)") == "123"
assert subject.format("number(123)") == "123"
assert subject.format("number(1234.56)") == "1,234.56"
assert subject.format('number(123, ".")') == "123"