Skip to content

Commit

Permalink
Add missing docstring to DFA.from_substrings test
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Mar 23, 2024
1 parent 8cbce02 commit b55b871
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_dfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,6 +2134,10 @@ def test_contains_substring(self, as_partial: bool) -> None:
self.assertIn("nano", word)

def test_contains_substrings(self) -> None:
"""
Should compute the minimal DFA recognizing strings containing the given
substring
"""
input_symbols = {"a", "n", "o", "b"}
substring_dfa = DFA.from_substring(input_symbols, "nano")
substrings_dfa = DFA.from_substrings(input_symbols, {"nano"})
Expand Down

0 comments on commit b55b871

Please sign in to comment.