From 5051fc6c01e70ede0cc91205676901930288ec47 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Tue, 10 Dec 2024 15:51:38 +0300 Subject: [PATCH] Add more tests --- tests/test_helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index b8a0d7c..b310a60 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -210,6 +210,9 @@ def test_to_bool_invalid_value(): ('l*e', 'l1e', True), ('l*e', 'l1ne', True), ('l*e', 'l1ne1', False), + ('l*e*1', 'l1ne11', True), + ('l*e*1', 'l1ne1', True), + ('l*e*2', 'l1ne1', False), ]) def test_match_with_asterisks(pattern: Optional[str], line: Optional[str], expected: bool): assert match_with_asterisks(pattern, line) == expected