Skip to content

Commit 0108fa2

Browse files
authored
Merge pull request #242 from rbasso/anagram-update-to-match-json
anagram: Update test cases to match json file.
2 parents c90b180 + 7f64b73 commit 0108fa2

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

exercises/anagram/test/Tests.hs

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ cases = [ Case { description = "no matches"
6262
, candidates = ["gallery", "ballerina", "regally", "clergy", "largely", "leading"]
6363
, expected = ["gallery", "regally", "largely"]
6464
}
65-
, Case { description = "does not detect indentical words"
65+
, Case { description = "does not detect identical words"
6666
, subject = "corn"
6767
, candidates = ["corn", "dark", "Corn", "rank", "CORN", "cron", "park"]
6868
, expected = ["cron"]
@@ -82,7 +82,7 @@ cases = [ Case { description = "no matches"
8282
, candidates = ["cashregister", "carthorse", "radishes"]
8383
, expected = ["carthorse"]
8484
}
85-
, Case { description = "detects anagrams using case-insensitve possible matches"
85+
, Case { description = "detects anagrams using case-insensitive possible matches"
8686
, subject = "orchestra"
8787
, candidates = ["cashregister", "Carthorse", "radishes"]
8888
, expected = ["Carthorse"]
@@ -102,11 +102,6 @@ cases = [ Case { description = "no matches"
102102
, candidates = ["patter"]
103103
, expected = []
104104
}
105-
, Case { description = "eliminates anagrams with the same checksum"
106-
, subject = "mass"
107-
, candidates = ["last"]
108-
, expected = []
109-
}
110105
, Case { description = "detects unicode anagrams"
111106
, subject = "ΑΒΓ"
112107
, candidates = ["ΒΓΑ", "ΒΓΔ", "γβα"]
@@ -122,19 +117,4 @@ cases = [ Case { description = "no matches"
122117
, candidates = ["Banana"]
123118
, expected = []
124119
}
125-
, Case { description = "anagrams must use all letters exactly once"
126-
, subject = "patter"
127-
, candidates = ["tapper"]
128-
, expected = []
129-
}
130-
, Case { description = "accepts string arguments"
131-
, subject = "ant"
132-
, candidates = ["stand", "tan", "at"]
133-
, expected = ["tan"]
134-
}
135-
, Case { description = "accepts single string argument"
136-
, subject = "ant"
137-
, candidates = ["tan"]
138-
, expected = ["tan"]
139-
}
140120
]

0 commit comments

Comments
 (0)