Skip to content

Commit f745b53

Browse files
sshinepetertseng
authored andcommitted
anagram 1.4.0: 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.2.1: no-op, comment change exercism/problem-specifications#1280 1.3.0: no-op, property change exercism/problem-specifications#1301 1.4.0: case-insensitive exercism/problem-specifications#1348
1 parent d9f6a1f commit f745b53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/anagram/source/anagram/AnagramTest.ceylon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ceylon.test {
22
...
33
}
44

5-
// Tests adapted from problem-specifications version 1.2.0
5+
// Tests adapted from problem-specifications version 1.4.0
66

77
{[String, {String*}, {String*}]*} cases => {
88
// no matches
@@ -31,8 +31,8 @@ import ceylon.test {
3131
["go", { "go Go GO" }, {}],
3232
// anagrams must use all letters exactly once
3333
["tapper", { "patter" }, {}],
34-
// capital word is not own anagram
35-
["BANANA", { "Banana" }, {}]
34+
// words are not anagrams of themselves (case-insensitive)
35+
["BANANA", { "BANANA", "Banana", "banana" }, {}]
3636
};
3737

3838
test

0 commit comments

Comments
 (0)