Skip to content

Commit 9513455

Browse files
mariohuqkotp
authored andcommitted
word-search: Add test case
1 parent a6a7e10 commit 9513455

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

exercises/word-search/canonical-data.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,46 @@
10011001
},
10021002
"haskell": null
10031003
}
1004+
},
1005+
{
1006+
"uuid": "fda5b937-6774-4a52-8f89-f64ed833b175",
1007+
"description": "Should fail to locate words that are not on horizontal, vertical, or diagonal lines",
1008+
"comments": [
1009+
"This test case filters out solutions,",
1010+
"those are give false positive results,",
1011+
"that are likely to achieve by considering linear paths other than horizontal, vertical or diagonal, e.g.",
1012+
"",
1013+
"```",
1014+
"[a][ ][ ]",
1015+
"[ ][e][f]",
1016+
"```",
1017+
"",
1018+
"or",
1019+
"",
1020+
"```",
1021+
"[a][b][ ]",
1022+
"[ ][ ][f]",
1023+
"```"
1024+
],
1025+
"property": "search",
1026+
"input": {
1027+
"grid": [
1028+
"abc",
1029+
"def"
1030+
],
1031+
"wordsToSearchFor": [
1032+
"aef",
1033+
"ced",
1034+
"abf",
1035+
"cbd"
1036+
]
1037+
},
1038+
"expected": {
1039+
"aef": null,
1040+
"ced": null,
1041+
"abf": null,
1042+
"cbd": null
1043+
}
10041044
}
10051045
]
10061046
}

0 commit comments

Comments
 (0)