Skip to content

Commit c93f14f

Browse files
authored
Improve readability of validate_board_and_word call
Refactor the validate_board_and_word function call for better readability.
1 parent 6effea5 commit c93f14f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backtracking/word_search.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def validate_board_and_word(board: list[list[str]], word: str) -> None:
9595
>>> validate_board_and_word(board, "SEE")
9696
>>> validate_board_and_word(board, "ABCB")
9797
>>> validate_board_and_word([["A"]], "A")
98-
>>> validate_board_and_word([["B", "A", "A"], ["A", "A", "A"], ["A", "B", "A"]], "ABB")
98+
>>> validate_board_and_word(
99+
... [["B", "A", "A"], ["A", "A", "A"], ["A", "B", "A"]], "ABB"
100+
... )
99101
>>> validate_board_and_word([["A"]], 123)
100102
Traceback (most recent call last):
101103
...

0 commit comments

Comments
 (0)