def test_number_parse(self): assert _normalize_answer("12.0") == _normalize_answer("12.0 ") assert _normalize_answer("12.0") == _normalize_answer("12.000") assert _normalize_answer("12.0") == _normalize_answer("12") assert _normalize_answer("12.0") == _normalize_answer(" 1.2e1 ")
def test_punctations(self): assert _normalize_answer("12.0 persons") == "12.0 persons" assert _normalize_answer("S.K. Singh") == "sk singh"