Synced tests to cannonical data and regenerated testfile. (#3575)

This commit is contained in:
BethanyG
2023-12-27 05:06:28 -08:00
committed by GitHub
parent 0bb0a2fd81
commit ef951b40b8
2 changed files with 7 additions and 2 deletions

View File

@@ -46,6 +46,11 @@ description = "detects anagrams using case-insensitive possible matches"
[7cc195ad-e3c7-44ee-9fd2-d3c344806a2c]
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]
description = "anagrams must use all letters exactly once"

View File

@@ -1,6 +1,6 @@
# These tests are auto-generated with test data from:
# 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
@@ -61,7 +61,7 @@ class AnagramTest(unittest.TestCase):
self.assertCountEqual(find_anagrams("orchestra", candidates), expected)
def test_does_not_detect_an_anagram_if_the_original_word_is_repeated(self):
candidates = ["go Go GO"]
candidates = ["goGoGO"]
expected = []
self.assertCountEqual(find_anagrams("go", candidates), expected)