MCPcopy Create free account
hub / github.com/clips/pattern / test_tenses

Method test_tenses

test/test_en.py:180–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

178 print "pattern.en.inflect.lexeme()"
179
180 def test_tenses(self):
181 # Assert tense recognition.
182 self.assertTrue((en.inflect.PRESENT, 1, en.inflect.SINGULAR) in en.inflect.tenses("am"))
183 self.assertTrue("1sg" in en.inflect.tenses("am"))
184 self.assertTrue("1sg" in en.inflect.tenses("will"))
185 self.assertTrue("2sg-" in en.inflect.tenses("won't"))
186 self.assertTrue("part" in en.inflect.tenses("imaginarifying"))
187 print "pattern.en.inflect.tenses()"
188
189 def test_comparative(self):
190 # Assert "nice" => "nicer".

Callers

nothing calls this directly

Calls 1

tensesMethod · 0.45

Tested by

no test coverage detected