| 90 | print "pattern.nl.inflect.verbs.find_lexeme()" |
| 91 | |
| 92 | def test_conjugate(self): |
| 93 | # Assert different tenses with different conjugations. |
| 94 | for (v1, v2, tense) in ( |
| 95 | ("zijn", "zijn", nl.INFINITIVE), |
| 96 | ("zijn", "ben", (nl.PRESENT, 1, nl.SINGULAR)), |
| 97 | ("zijn", "bent", (nl.PRESENT, 2, nl.SINGULAR)), |
| 98 | ("zijn", "is", (nl.PRESENT, 3, nl.SINGULAR)), |
| 99 | ("zijn", "zijn", (nl.PRESENT, 0, nl.PLURAL)), |
| 100 | ("zijn", "zijnd", (nl.PRESENT + nl.PARTICIPLE,)), |
| 101 | ("zijn", "was", (nl.PAST, 1, nl.SINGULAR)), |
| 102 | ("zijn", "was", (nl.PAST, 2, nl.SINGULAR)), |
| 103 | ("zijn", "was", (nl.PAST, 3, nl.SINGULAR)), |
| 104 | ("zijn", "waren", (nl.PAST, 0, nl.PLURAL)), |
| 105 | ("zijn", "was", (nl.PAST, 0, None)), |
| 106 | ("zijn", "geweest", (nl.PAST + nl.PARTICIPLE,)), |
| 107 | ("had", "hebben", "inf"), |
| 108 | ("had", "heb", "1sg"), |
| 109 | ("had", "hebt", "2sg"), |
| 110 | ("had", "heeft", "3sg"), |
| 111 | ("had", "hebben", "pl"), |
| 112 | ("had", "hebbend", "part"), |
| 113 | ("heeft", "had", "1sgp"), |
| 114 | ("heeft", "had", "2sgp"), |
| 115 | ("heeft", "had", "3sgp"), |
| 116 | ("heeft", "hadden", "ppl"), |
| 117 | ("heeft", "had", "p"), |
| 118 | ("heeft", "gehad", "ppart"), |
| 119 | ("smsen", "smste", "3sgp")): |
| 120 | self.assertEqual(nl.conjugate(v1, tense), v2) |
| 121 | print "pattern.nl.conjugate()" |
| 122 | |
| 123 | def test_lexeme(self): |
| 124 | # Assert all inflections of "zijn". |