def test_should_return_nopunct(self): assert get_punctuation_type_feature('abc') == 'NOPUNCT'
def test_should_return_quote(self): assert get_punctuation_type_feature('"') == 'QUOTE' assert get_punctuation_type_feature('\'') == 'QUOTE' assert get_punctuation_type_feature('`') == 'QUOTE' assert get_punctuation_type_feature('’') == 'QUOTE'
def test_should_return_punct(self): assert get_punctuation_type_feature(',,') == 'PUNCT' assert get_punctuation_type_feature('::') == 'PUNCT' assert get_punctuation_type_feature(';;') == 'PUNCT' assert get_punctuation_type_feature('??') == 'PUNCT' assert get_punctuation_type_feature('..') == 'PUNCT'
def test_should_return_hyphen(self): assert get_punctuation_type_feature('-') == 'HYPHEN' assert get_punctuation_type_feature('–') == 'HYPHEN'
def test_should_return_comma(self): assert get_punctuation_type_feature(',') == 'COMMA'
def test_should_return_dot(self): assert get_punctuation_type_feature('.') == 'DOT'
def test_should_return_endbracket(self): assert get_punctuation_type_feature(')') == 'ENDBRACKET' assert get_punctuation_type_feature(']') == 'ENDBRACKET'
def test_should_return_openbracket(self): assert get_punctuation_type_feature('(') == 'OPENBRACKET' assert get_punctuation_type_feature('[') == 'OPENBRACKET'