From f79eba21e24c284589ed7ca5318ffd1e3a112dbc Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Tue, 26 Apr 2022 22:18:55 +0200 Subject: [PATCH] PageRange tests --- Tests/test_pagerange.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/test_pagerange.py b/Tests/test_pagerange.py index b8d8fa825..801f5b08d 100644 --- a/Tests/test_pagerange.py +++ b/Tests/test_pagerange.py @@ -10,7 +10,8 @@ def test_equality(): @pytest.mark.parametrize( - "page_range,expected", [(slice(0, 5), "0:5"), (slice(0, 5, 2), "0:5:2")] + "page_range,expected", + [(slice(0, 5), "0:5"), (slice(0, 5, 2), "0:5:2"), ("-1", "-1:"), ("0", "0")], ) def test_str(page_range, expected): assert str(PageRange(page_range)) == expected