From 3b7f8716690b7aa1994a9cb387bbc7215e01a4ed Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 16 Sep 2025 02:12:49 -0400 Subject: New upstream version 1.30.7. --- test/test_formatter.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_formatter.py b/test/test_formatter.py index 8b35a2b..01e3a88 100644 --- a/test/test_formatter.py +++ b/test/test_formatter.py @@ -46,7 +46,8 @@ class TestFormatter(unittest.TestCase): "h": "

foo

& bar

", "H": """

Lorem ipsum dolor sit amet. - Duis aute irure dolor. + Duis aute irure + http://blog.example.org.

""", "u": "'< / >'", "t": 1262304000, @@ -78,6 +79,7 @@ class TestFormatter(unittest.TestCase): self._run_test("{n!H}", "") self._run_test("{h!R}", []) self._run_test("{H!R}", ["http://www.example.com", + "http://blog.example.org/lorem?foo=bar", "http://blog.example.org"]) self._run_test("{a!s}", self.kwdict["a"]) self._run_test("{a!r}", f"'{self.kwdict['a']}'") @@ -176,6 +178,11 @@ class TestFormatter(unittest.TestCase): self._run_test("{l[0]}" , "a") self._run_test("{a[6]}" , "w") + def test_indexing_negative(self): + self._run_test("{l[-1]}" , "c") + self._run_test("{a[-7]}" , "o") + self._run_test("{a[-0]}" , "h") # same as a[0] + def test_dict_access(self): self._run_test("{d[a]}" , "foo") self._run_test("{d['a']}", "foo") -- cgit v1.2.3