def test_casing_is_ignored(self): assert get_metric_squad("This was a triumph", ["tHIS Was A TRIUMPH"]) == (1.0, 1.0)
def test_functional_case(self): assert get_metric_squad("This was a triumph", ["a triumph"]) == (0.0, 0.5)
def test_articles_are_ignored(self): assert get_metric_squad("td", ["the td"]) == (1.0, 1.0) assert get_metric_squad("the a NOT an ARTICLE the an a", ["NOT ARTICLE"]) == (1.0, 1.0)
def test_impossible_answer(self): assert get_metric_squad("", ["news"]) == (0.0, 0.0) assert get_metric_squad("news", [""]) == (0.0, 0.0) assert get_metric_squad("", [""]) == (1.0, 1.0)