def test_match_digits(self): for word in self.VALID_DIGITS: analyzer = NumeralMorphologicalAnalyzer(word) matches = analyzer.match() assert matches is not None assert len(matches.span()) == 2
def test_match_invalid_digits(self): for word in self.INVALID_DIGITS: analyzer = NumeralMorphologicalAnalyzer(word) matches = analyzer.match() assert matches is None
def test_match_empty(self): for word in self.INVALID_WORDS: analyzer = NumeralMorphologicalAnalyzer(word) matches = analyzer.match() assert matches is None