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

Method test_conjugate

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

Source from the content-addressed store, hash-verified

90 print "pattern.en.inflect.verbs.find_lexeme()"
91
92 def test_conjugate(self):
93 # Assert different tenses with different conjugations.
94 for (v1, v2, tense) in (
95 ("be", "be", en.INFINITIVE),
96 ("be", "am", (en.PRESENT, 1, en.SINGULAR)),
97 ("be", "are", (en.PRESENT, 2, en.SINGULAR)),
98 ("be", "is", (en.PRESENT, 3, en.SINGULAR)),
99 ("be", "are", (en.PRESENT, 0, en.PLURAL)),
100 ("be", "being", (en.PRESENT + en.PARTICIPLE,)),
101 ("be", "was", (en.PAST, 1, en.SINGULAR)),
102 ("be", "were", (en.PAST, 2, en.SINGULAR)),
103 ("be", "was", (en.PAST, 3, en.SINGULAR)),
104 ("be", "were", (en.PAST, 0, en.PLURAL)),
105 ("be", "were", (en.PAST, 0, None)),
106 ("be", "been", (en.PAST + en.PARTICIPLE,)),
107 ("be", "am", "1sg"),
108 ("be", "are", "2sg"),
109 ("be", "is", "3sg"),
110 ("be", "are", "1pl"),
111 ("be", "are", "2pl"),
112 ("be", "are", "3pl"),
113 ("be", "are", "pl"),
114 ("be", "being", "part"),
115 ("be", "was", "1sgp"),
116 ("be", "were", "2sgp"),
117 ("be", "was", "3sgp"),
118 ("be", "were", "1ppl"),
119 ("be", "were", "2ppl"),
120 ("be", "were", "3ppl"),
121 ("be", "were", "p"),
122 ("be", "were", "ppl"),
123 ("be", "been", "ppart"),
124 ("be", "am not", "1sg-"),
125 ("be", "aren't", "2sg-"),
126 ("be", "isn't", "3sg-"),
127 ("be", "aren't", "1pl-"),
128 ("be", "aren't", "2pl-"),
129 ("be", "aren't", "3pl-"),
130 ("be", "aren't", "pl-"),
131 ("be", "wasn't", "1sgp-"),
132 ("be", "weren't", "2sgp-"),
133 ("be", "wasn't", "3sgp-"),
134 ("be", "weren't", "1ppl-"),
135 ("be", "weren't", "2ppl-"),
136 ("be", "weren't", "3ppl-"),
137 ("be", "weren't", "ppl-"),
138 ("had", "have", "inf"),
139 ("had", "have", "1sg"),
140 ("had", "have", "2sg"),
141 ("had", "has", "3sg"),
142 ("had", "have", "pl"),
143 ("had", "having", "part"),
144 ("has", "had", "1sgp"),
145 ("has", "had", "2sgp"),
146 ("has", "had", "3sgp"),
147 ("has", "had", "ppl"),
148 ("has", "had", "p"),
149 ("has", "had", "ppart"),

Callers

nothing calls this directly

Calls 1

conjugateMethod · 0.80

Tested by

no test coverage detected