Synced tests to cannonical data and regenerated testfile. (#3575)
This commit is contained in:
@@ -46,6 +46,11 @@ description = "detects anagrams using case-insensitive possible matches"
|
|||||||
|
|
||||||
[7cc195ad-e3c7-44ee-9fd2-d3c344806a2c]
|
[7cc195ad-e3c7-44ee-9fd2-d3c344806a2c]
|
||||||
description = "does not detect an anagram if the original word is repeated"
|
description = "does not detect an anagram if the original word is repeated"
|
||||||
|
include = false
|
||||||
|
|
||||||
|
[630abb71-a94e-4715-8395-179ec1df9f91]
|
||||||
|
description = "does not detect an anagram if the original word is repeated"
|
||||||
|
reimplements = "7cc195ad-e3c7-44ee-9fd2-d3c344806a2c"
|
||||||
|
|
||||||
[9878a1c9-d6ea-4235-ae51-3ea2befd6842]
|
[9878a1c9-d6ea-4235-ae51-3ea2befd6842]
|
||||||
description = "anagrams must use all letters exactly once"
|
description = "anagrams must use all letters exactly once"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# These tests are auto-generated with test data from:
|
# These tests are auto-generated with test data from:
|
||||||
# https://github.com/exercism/problem-specifications/tree/main/exercises/anagram/canonical-data.json
|
# https://github.com/exercism/problem-specifications/tree/main/exercises/anagram/canonical-data.json
|
||||||
# File last updated on 2023-07-20
|
# File last updated on 2023-12-27
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ class AnagramTest(unittest.TestCase):
|
|||||||
self.assertCountEqual(find_anagrams("orchestra", candidates), expected)
|
self.assertCountEqual(find_anagrams("orchestra", candidates), expected)
|
||||||
|
|
||||||
def test_does_not_detect_an_anagram_if_the_original_word_is_repeated(self):
|
def test_does_not_detect_an_anagram_if_the_original_word_is_repeated(self):
|
||||||
candidates = ["go Go GO"]
|
candidates = ["goGoGO"]
|
||||||
expected = []
|
expected = []
|
||||||
self.assertCountEqual(find_anagrams("go", candidates), expected)
|
self.assertCountEqual(find_anagrams("go", candidates), expected)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user