Skip to content

anagram: fix typo s/indentical/identical; rm duplicate cases; rm all "string argument" cases #308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
}
]
}