diff --git a/exercises/anagram/canonical-data.json b/exercises/anagram/canonical-data.json index 100eefb331..02f0b0d80a 100644 --- a/exercises/anagram/canonical-data.json +++ b/exercises/anagram/canonical-data.json @@ -1,108 +1,130 @@ { - "#": [ - "The string argument cases possible matches are passed in as", - "individual arguments rather than arrays. Languages can include", - "these string argument cases if passing individual arguments is", - "idiomatic in that language.", - "Some tests have a \"comment\" property, which provides more", - "information that could be added to the test case as a code comment." - ], - "cases": [ - { - "description": "no matches", - "subject": "diaper", - "candidates": [ "hello", "world", "zombies", "pants"], - "expected": [] - }, - { - "description": "detects simple anagram", - "subject": "ant", - "candidates": ["tan", "stand", "at"], - "expected": ["tan"] - }, - { - "description": "does not detect false positives", - "subject": "galea", - "candidates": ["eagle"], - "expected": [] - }, - { - "description": "detects multiple anagrams", - "subject": "master", - "candidates": ["stream", "pigeon", "maters"], - "expected": ["stream", "maters"] - }, - { - "description": "does not detect anagram subsets", - "subject": "good", - "candidates": ["dog", "goody"], - "expected": [] - }, - { - "description": "detects anagram", - "subject": "listen", - "candidates": ["enlists", "google", "inlets", "banana"], - "expected": ["inlets"] - }, - { - "description": "detects multiple anagrams", - "subject": "allergy", - "candidates": ["gallery", "ballerina", "regally", "clergy", "largely", "leading"], - "expected": ["gallery", "regally", "largely"] - }, - { - "description": "does not detect identical words", - "subject": "corn", - "candidates": ["corn", "dark", "Corn", "rank", "CORN", "cron", "park"], - "expected": ["cron"] - }, - { - "description": "does not detect non-anagrams with identical checksum", - "subject": "mass", - "candidates": ["last"], - "expected": [] - }, - { - "description": "detects anagrams case-insensitively", - "subject": "Orchestra", - "candidates": ["cashregister", "Carthorse", "radishes"], - "expected": ["Carthorse"] - }, - { - "description": "detects anagrams using case-insensitive subject", - "subject": "Orchestra", - "candidates": ["cashregister", "carthorse", "radishes"], - "expected": ["carthorse"] - }, - { - "description": "detects anagrams using case-insensitive possible matches", - "subject": "orchestra", - "candidates": ["cashregister", "Carthorse", "radishes"], - "expected": ["Carthorse"] - }, - { - "description": "does not detect a word as its own anagram", - "subject": "banana", - "candidates": ["Banana"], - "expected": [] - }, - { - "description": "does not detect a anagram if the original word is repeated", - "subject": "go", - "candidates": ["go Go GO"], - "expected": [] - }, - { - "description": "anagrams must use all letters exactly once", - "subject": "tapper", - "candidates": ["patter"], - "expected": [] - }, - { - "description": "capital word is not own anagram", - "subject": "BANANA", - "candidates": ["Banana"], - "expected": [] - } - ] + "exercise": "anagram", + "version": "1.0.0", + "comments": [ + "The string argument cases possible matches are passed in as", + "individual arguments rather than arrays. Languages can include", + "these string argument cases if passing individual arguments is", + "idiomatic in that language." + ], + "cases": [ + { + "description": "no matches", + "property": "anagrams", + "subject": "diaper", + "candidates": ["hello", "world", "zombies", "pants"], + "expected": [] + }, + { + "description": "detects simple anagram", + "property": "anagrams", + "subject": "ant", + "candidates": ["tan", "stand", "at"], + "expected": ["tan"] + }, + { + "description": "does not detect false positives", + "property": "anagrams", + "subject": "galea", + "candidates": ["eagle"], + "expected": [] + }, + { + "description": "detects multiple anagrams", + "property": "anagrams", + "subject": "master", + "candidates": ["stream", "pigeon", "maters"], + "expected": ["stream", "maters"] + }, + { + "description": "does not detect anagram subsets", + "property": "anagrams", + "subject": "good", + "candidates": ["dog", "goody"], + "expected": [] + }, + { + "description": "detects anagram", + "property": "anagrams", + "subject": "listen", + "candidates": ["enlists", "google", "inlets", "banana"], + "expected": ["inlets"] + }, + { + "description": "detects multiple anagrams", + "property": "anagrams", + "subject": "allergy", + "candidates": [ "gallery", + "ballerina", + "regally", + "clergy", + "largely", + "leading" + ], + "expected": ["gallery", "regally", "largely"] + }, + { + "description": "does not detect identical words", + "property": "anagrams", + "subject": "corn", + "candidates": ["corn", "dark", "Corn", "rank", "CORN", "cron", "park"], + "expected": ["cron"] + }, + { + "description": "does not detect non-anagrams with identical checksum", + "property": "anagrams", + "subject": "mass", + "candidates": ["last"], + "expected": [] + }, + { + "description": "detects anagrams case-insensitively", + "property": "anagrams", + "subject": "Orchestra", + "candidates": ["cashregister", "Carthorse", "radishes"], + "expected": ["Carthorse"] + }, + { + "description": "detects anagrams using case-insensitive subject", + "property": "anagrams", + "subject": "Orchestra", + "candidates": ["cashregister", "carthorse", "radishes"], + "expected": ["carthorse"] + }, + { + "description": "detects anagrams using case-insensitive possible matches", + "property": "anagrams", + "subject": "orchestra", + "candidates": ["cashregister", "Carthorse", "radishes"], + "expected": ["Carthorse"] + }, + { + "description": "does not detect a word as its own anagram", + "property": "anagrams", + "subject": "banana", + "candidates": ["Banana"], + "expected": [] + }, + { + "description": "does not detect a anagram if the original word is repeated", + "property": "anagrams", + "subject": "go", + "candidates": ["go Go GO"], + "expected": [] + }, + { + "description": "anagrams must use all letters exactly once", + "property": "anagrams", + "subject": "tapper", + "candidates": ["patter"], + "expected": [] + }, + { + "description": "capital word is not own anagram", + "property": "anagrams", + "subject": "BANANA", + "candidates": ["Banana"], + "expected": [] + } + ] }