Example #1
0
 def test_spaces_are_ignored(self):
     assert _normalize_answer_squad("abcd") == _normalize_answer_squad(
         "abcd  ")
     assert _normalize_answer_squad("abcd") == _normalize_answer_squad(
         "  abcd  ")
     assert _normalize_answer_squad("  ABCD") == _normalize_answer_squad(
         "ABCD")
Example #2
0
 def test_punctations_are_ignored(self):
     assert _normalize_answer_squad(
         "T.J Howard") == _normalize_answer_squad("tj howard")
     assert _normalize_answer_squad("7802") == _normalize_answer_squad(
         "78.02")