Skip to content

Commit fc35941

Browse files
committed
Refactor assertion messages in test_function.py for clarity
1 parent 99459ae commit fc35941

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_function.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
def f_finite(regexEnumerator: RegexEnumerator, possibilities: list[str]):
55
while len(possibilities) != 0:
66
res = regexEnumerator.next()
7-
assert res in possibilities, f"Generated string '{
8-
res}' is not in the possibilities."
7+
assert res in possibilities, f"'{res}' is not in the possibilities."
98
possibilities.remove(res)
109

1110
assert regexEnumerator.done
@@ -14,8 +13,7 @@ def f_finite(regexEnumerator: RegexEnumerator, possibilities: list[str]):
1413
def f_infinite(regexEnumerator: RegexEnumerator, possibilities: list[str]):
1514
while len(possibilities) != 0:
1615
res = regexEnumerator.next()
17-
assert res in possibilities, f"Generated string '{
18-
res}' is not in the possibilities."
16+
assert res in possibilities, f"'{res}' is not in the possibilities."
1917
possibilities.remove(res)
2018

2119
assert not regexEnumerator.done

0 commit comments

Comments
 (0)