From be1704e4254c497b8820e3216f709b5180e3646c Mon Sep 17 00:00:00 2001 From: Peter Tseng Date: Fri, 29 Jul 2016 19:59:59 -0700 Subject: [PATCH 1/4] anagram: fix typo s/indentical/identical/ --- anagram.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anagram.json b/anagram.json index ab5ebeecc6..d1a0cf18fc 100644 --- a/anagram.json +++ b/anagram.json @@ -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"] From 8ea9a3998025c642f40e97b971133afc452b8a33 Mon Sep 17 00:00:00 2001 From: Peter Tseng Date: Fri, 29 Jul 2016 20:02:06 -0700 Subject: [PATCH 2/4] anagram: rm duplicate cases the mass/last case was duplicated exactly, while the tapper/patter case was tested once with tapper as subject and once with patter as subject (I arbitrarily chose to keep the one appearing earlier in the file) --- anagram.json | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/anagram.json b/anagram.json index d1a0cf18fc..65829414ce 100644 --- a/anagram.json +++ b/anagram.json @@ -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.", @@ -123,13 +117,6 @@ "subject": "BANANA", "candidates": ["Banana"], "expected": [] - - }, - { - "description": "anagrams must use all letters exactly once", - "subject": "patter", - "candidates": ["tapper"], - "expected": [] } ], "string argument cases": [ From ed4a686f0781bcbb52630539d6d218d1bed3fd4b Mon Sep 17 00:00:00 2001 From: Peter Tseng Date: Fri, 29 Jul 2016 20:04:55 -0700 Subject: [PATCH 3/4] anagram: rm all "string argument" cases the ant -> stand, tan, at case is exactly a duplicate of a case in the "cases" section. The ant -> tan case is not a duplicate, but it does not seem to provide any extra value as the description of the test "accepts single string argument" is covered by, for example, galea -> eagle. --- anagram.json | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/anagram.json b/anagram.json index 65829414ce..bb50718e81 100644 --- a/anagram.json +++ b/anagram.json @@ -118,19 +118,5 @@ "candidates": ["Banana"], "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"] - } ] } From cef16c46dc867af32780c964929751e88d04fbf3 Mon Sep 17 00:00:00 2001 From: Peter Tseng Date: Fri, 29 Jul 2016 20:13:33 -0700 Subject: [PATCH 4/4] anagram: fix typo s/insensitve/insensitive/ --- anagram.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anagram.json b/anagram.json index bb50718e81..dfd4c71b64 100644 --- a/anagram.json +++ b/anagram.json @@ -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"]