Skip to content

Commit

Permalink
Add second expected file for ABC test
Browse files Browse the repository at this point in the history
  • Loading branch information
AksharP5 committed Mar 15, 2024
1 parent 958c64a commit 7524064
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ABC/tests/bear-fuzzy-wuzzy/ABC.expected2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


2 matches:
bear(fuzzy)
bear(wuzzy)

3 changes: 2 additions & 1 deletion ABC/tests/bear-fuzzy-wuzzy/ABCtest.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ teardown() {
@test "ABC bear-fuzzy-wuzzy" {
RESULT="$(java -cp abcdatalog.jar:Java Rep -n < ./tests/bear-fuzzy-wuzzy/ABC.input)"
expected_output=$(< "./tests/bear-fuzzy-wuzzy/ABC.expected")
[[ "$RESULT" == "$expected_output" ]]
expected_output2=$(< "./tests/bear-fuzzy-wuzzy/ABC.expected2")
[[ "$RESULT" == "$expected_output" || "$RESULT" == "$expected_output2" ]]
}

0 comments on commit 7524064

Please sign in to comment.