MCPcopy Index your code
hub / github.com/clips/pattern / test_lexeme

Method test_lexeme

test/test_it.py:176–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 print "pattern.it.conjugate()"
175
176 def test_lexeme(self):
177 # Assert all inflections of "essere".
178 v = it.lexeme("essere")
179 self.assertEqual(v, [
180 u'essere', u'sono', u'sei', u'è', u'siamo', u'siete', u'essendo',
181 u'fui', u'fosti', u'fu', u'fummo', u'foste', u'furono', u'stato',
182 u'ero', u'eri', u'era', u'eravamo', u'eravate', u'erano',
183 u'sarò', u'sarai', u'sarà', u'saremo', u'sarete', u'saranno',
184 u'sarei', u'saresti', u'sarebbe', u'saremmo', u'sareste', u'sarebbero',
185 u'sii', u'sia', u'siate', u'siano',
186 u'fossi', u'fosse', u'fossimo', u'fossero'
187 ])
188 print "pattern.it.inflect.lexeme()"
189
190 def test_tenses(self):
191 # Assert tense recognition.

Callers

nothing calls this directly

Calls 1

lexemeMethod · 0.80

Tested by

no test coverage detected