We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 613aaef commit 1a4cc49Copy full SHA for 1a4cc49
tests/test_lib.py
@@ -46,14 +46,17 @@ def test(entry):
46
47
if isinstance(entry.get("expected_match"), dict):
48
result = pattern.exec(*entry["inputs"])
49
- assert result
50
51
for key in entry["expected_match"]:
52
assert result[key] == entry["expected_match"][key]
53
+ else:
54
+ result = pattern.exec(*entry["inputs"])
55
+ assert result is None
56
+
57
if "exactly_empty_components" in entry:
58
59
60
for component in entry["exactly_empty_components"]:
61
if result:
- assert result[component]["groups"] == {}
62
+ assert result[component]["groups"] == {}
0 commit comments