Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 10, 2024
1 parent 834ff47 commit 5051fc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5051fc6

Please sign in to comment.