diff --git a/sudoku-solver/tests.sh b/sudoku-solver/tests.sh index 6d7537c..fefa6e9 100755 --- a/sudoku-solver/tests.sh +++ b/sudoku-solver/tests.sh @@ -6,7 +6,7 @@ puzzle="53..7....6..195....98....6.8...6...34..8.3..17...2...6.6....28....419..5 expected="534678912672195348198342567859761423426853791713924856961537284287419635345286179" output=$(./sudoku-solver "$puzzle") -if ! echo "$output" | grep -q "$expected"; then +if ! echo "$output" | grep -Fq "$expected"; then echo "Test failed: expected solution was not found" exit 1 fi @@ -18,7 +18,7 @@ if ./sudoku-solver "$invalid" >/dev/null 2>&1; then fi limited_output=$(./sudoku-solver "$puzzle" 1) -if ! echo "$limited_output" | grep -q "Found 1 solution(s)."; then +if ! echo "$limited_output" | grep -Fq "Found 1 solution(s)."; then echo "Test failed: max_solutions limit did not work" exit 1 fi