Skip to content

Commit baaf092

Browse files
committed
anagram: words are not anagrams of themselves
The logical extension of Banana not being an anagram of BANANA must be that words are never anagrams of themselves, and that the test "capital word is not own anagram" only tests this for case insensitivity.
1 parent 3672d59 commit baaf092

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/anagram/canonical-data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "anagram",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"cases": [
55
{
66
"description": "no matches",
@@ -109,11 +109,11 @@
109109
"expected": []
110110
},
111111
{
112-
"description": "capital word is not own anagram",
112+
"description": "words are not anagrams of themselves (case-insensitive)",
113113
"property": "findAnagrams",
114114
"input": {
115115
"subject": "BANANA",
116-
"candidates": ["Banana"]
116+
"candidates": ["BANANA", "Banana", "banana"]
117117
},
118118
"expected": []
119119
}

0 commit comments

Comments
 (0)