Skip to content

Commit

Permalink
Merge pull request exercism#308 from petertseng/anagram
Browse files Browse the repository at this point in the history
anagram: fix typo s/indentical/identical; rm duplicate cases; rm all "string argument" cases
  • Loading branch information
petertseng authored Jul 30, 2016
2 parents a758980 + cef16c4 commit 8d26ef9
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions anagram.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"expected": ["gallery", "regally", "largely"]
},
{
"description": "does not detect indentical words",
"description": "does not detect identical words",
"subject": "corn",
"candidates": ["corn", "dark", "Corn", "rank", "CORN", "cron", "park"],
"expected": ["cron"]
Expand All @@ -75,7 +75,7 @@
"expected": ["carthorse"]
},
{
"description": "detects anagrams using case-insensitve possible matches",
"description": "detects anagrams using case-insensitive possible matches",
"subject": "orchestra",
"candidates": ["cashregister", "Carthorse", "radishes"],
"expected": ["Carthorse"]
Expand All @@ -98,12 +98,6 @@
"candidates": ["patter"],
"expected": []
},
{
"description": "eliminates anagrams with the same checksum",
"subject": "mass",
"candidates": ["last"],
"expected": []
},
{
"description": "detects unicode anagrams",
"comment": "These words don't make sense, they're just greek letters cobbled together.",
Expand All @@ -123,27 +117,6 @@
"subject": "BANANA",
"candidates": ["Banana"],
"expected": []

},
{
"description": "anagrams must use all letters exactly once",
"subject": "patter",
"candidates": ["tapper"],
"expected": []
}
],
"string argument cases": [
{
"description": "accepts string arguments",
"subject": "ant",
"candidates": ["stand", "tan", "at"],
"expected": ["tan"]
},
{
"description": "accepts single string argument",
"subject": "ant",
"candidates": ["tan"],
"expected": ["tan"]
}
]
}

0 comments on commit 8d26ef9

Please sign in to comment.