diff options
| author | 2024-09-07 18:33:19 -0400 | |
|---|---|---|
| committer | 2024-09-07 18:33:19 -0400 | |
| commit | 1f3ffe32342852fd9ea9e7704022488f3a1222bd (patch) | |
| tree | cb255a091b73e96840de0f6f44b36dff1acab4b9 /test/test_formatter.py | |
| parent | b5e56c51e491b41f9eb6a895459c185788a377e5 (diff) | |
New upstream version 1.27.4.upstream/1.27.4
Diffstat (limited to 'test/test_formatter.py')
| -rw-r--r-- | test/test_formatter.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_formatter.py b/test/test_formatter.py index e00af85..75324fb 100644 --- a/test/test_formatter.py +++ b/test/test_formatter.py @@ -25,6 +25,7 @@ class TestFormatter(unittest.TestCase): "b": "äöü", "j": "げんそうきょう", "d": {"a": "foo", "b": 0, "c": None}, + "i": 2, "l": ["a", "b", "c"], "n": None, "s": " \n\r\tSPACE ", @@ -267,6 +268,11 @@ class TestFormatter(unittest.TestCase): "{a:Sort-reverse}", # starts with 'S', contains 'r' "['w', 'r', 'o', 'l', 'h', 'd', 'O', 'L', 'L', 'E', ' ']") + def test_specifier_arithmetic(self): + self._run_test("{i:A+1}", "3") + self._run_test("{i:A-1}", "1") + self._run_test("{i:A*3}", "6") + def test_specifier_conversions(self): self._run_test("{a:Cl}" , "hello world") self._run_test("{h:CHC}" , "Foo & Bar") |
