latinverb 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/Gemfile +4 -1
  2. data/Gemfile.lock +24 -0
  3. data/Guardfile +10 -0
  4. data/README.markdown +1 -1
  5. data/Rakefile +12 -9
  6. data/latinverb.gemspec +4 -0
  7. data/lib/latinverb/chart.rb +5 -5
  8. data/lib/latinverb/version.rb +1 -1
  9. data/lib/latinverb.rb +266 -534
  10. data/lib/linguistics/latin/verb/classification_types.rb +19 -17
  11. data/lib/linguistics/latin/verb/constants.rb +14 -14
  12. data/lib/linguistics/latin/verb/deponent_tense_methods.rb +8 -21
  13. data/lib/linguistics/latin/verb/imperative_block.rb +118 -0
  14. data/lib/linguistics/latin/verb/infinitive_block.rb +39 -0
  15. data/lib/linguistics/latin/verb/infinitives.rb +181 -181
  16. data/lib/linguistics/latin/verb/irregulars.rb +74 -74
  17. data/lib/linguistics/latin/verb/latinverb/classmethods.rb +36 -117
  18. data/lib/linguistics/latin/verb/latinverb/data.rb +12 -15
  19. data/lib/linguistics/latin/verb/latinverb/defective_checker.rb +17 -0
  20. data/lib/linguistics/latin/verb/latinverb/deponent.rb +159 -0
  21. data/lib/linguistics/latin/verb/latinverb/display.rb +1 -2
  22. data/lib/linguistics/latin/verb/latinverb/impersonal.rb +34 -0
  23. data/lib/linguistics/latin/verb/latinverb/irregular.rb +83 -0
  24. data/lib/linguistics/latin/verb/latinverb/latin_verb_type_evaluator.rb +32 -0
  25. data/lib/linguistics/latin/verb/latinverb/latinverb_classifier.rb +100 -0
  26. data/lib/linguistics/latin/verb/latinverb/latinverb_input_sanitizer.rb +32 -0
  27. data/lib/linguistics/latin/verb/latinverb/latinverb_pp_extractor.rb +106 -0
  28. data/lib/linguistics/latin/verb/latinverb/metaprogramming.rb +30 -29
  29. data/lib/linguistics/latin/verb/latinverb/semideponent.rb +28 -0
  30. data/lib/linguistics/latin/verb/latinverb/validation.rb +5 -29
  31. data/lib/linguistics/latin/verb/latinverb/verbvector_description.rb +50 -0
  32. data/lib/linguistics/latin/verb/participle_block.rb +36 -0
  33. data/lib/linguistics/latin/verb/participles.rb +25 -25
  34. data/lib/linguistics/latin/verb/phonographia.rb +51 -51
  35. data/lib/linguistics/latin/verb/supine.rb +6 -6
  36. data/lib/linguistics/latin/verb/tense_block.rb +227 -0
  37. data/lib/linguistics/latin/verb/tense_definitions/first.rb +92 -0
  38. data/lib/linguistics/latin/verb/tense_definitions/fourth.rb +92 -0
  39. data/lib/linguistics/latin/verb/tense_definitions/impersonal.rb +25 -0
  40. data/lib/linguistics/latin/verb/tense_definitions/invariant.rb +613 -0
  41. data/lib/linguistics/latin/verb/tense_definitions/irregular.rb +82 -0
  42. data/lib/linguistics/latin/verb/tense_definitions/second.rb +97 -0
  43. data/lib/linguistics/latin/verb/tense_definitions/third.rb +86 -0
  44. data/lib/linguistics/latin/verb/tense_definitions/third_io.rb +91 -0
  45. data/test/testClusterResolution.rb +0 -1
  46. data/test/testDataStructures.rb +8 -5
  47. data/test/testDefectSemiImp.rb +9 -10
  48. data/test/testDeponentFirstConjugation.rb +2 -2
  49. data/test/testDeponentFourthConjugation.rb +2 -2
  50. data/test/testDeponentSecondConjugation.rb +2 -2
  51. data/test/testDeponentThirdConjugation.rb +2 -2
  52. data/test/testDeponentThirdIOConjugation.rb +2 -2
  53. data/test/testDeserializeInfinitives.rb +2 -4
  54. data/test/testFirstConjugation.rb +53 -53
  55. data/test/testFourthConjugation.rb +11 -11
  56. data/test/testFreakishVerbs.rb +12 -11
  57. data/test/testIrregulars.rb +24 -23
  58. data/test/testLatinVerb.rb +46 -55
  59. data/test/testSecondConjugation.rb +27 -27
  60. data/test/testThirdConjugation.rb +14 -14
  61. data/test/testThirdIOConjugation.rb +13 -13
  62. metadata +95 -53
  63. data/lib/linguistics/latin/verb/latinverb/auxiliary_classes.rb +0 -208
  64. data/lib/linguistics/latin/verb/tense_methods.rb +0 -950
@@ -29,51 +29,51 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
29
29
  assert_equal "amāmus", @aFirst.active_voice_indicative_mood_present_tense_first_person_plural_number
30
30
  assert_equal "amātis", @aFirst.active_voice_indicative_mood_present_tense_second_person_plural_number
31
31
  assert_equal "amant", @aFirst.active_voice_indicative_mood_present_tense_third_person_plural_number
32
-
32
+
33
33
  assert_equal "amābam", @aFirst.active_voice_indicative_mood_imperfect_tense_first_person_singular_number
34
34
  assert_equal "amābās", @aFirst.active_voice_indicative_mood_imperfect_tense_second_person_singular_number
35
35
  assert_equal "amābat", @aFirst.active_voice_indicative_mood_imperfect_tense_third_person_singular_number
36
36
  assert_equal "amābāmus", @aFirst.active_voice_indicative_mood_imperfect_tense_first_person_plural_number
37
37
  assert_equal "amābātis", @aFirst.active_voice_indicative_mood_imperfect_tense_second_person_plural_number
38
38
  assert_equal "amābant", @aFirst.active_voice_indicative_mood_imperfect_tense_third_person_plural_number
39
-
39
+
40
40
  assert_equal "amābō", @aFirst.active_voice_indicative_mood_future_tense_first_person_singular_number
41
41
  assert_equal "amābis", @aFirst.active_voice_indicative_mood_future_tense_second_person_singular_number
42
42
  assert_equal "amābit", @aFirst.active_voice_indicative_mood_future_tense_third_person_singular_number
43
43
  assert_equal "amābimus", @aFirst.active_voice_indicative_mood_future_tense_first_person_plural_number
44
44
  assert_equal "amābitis", @aFirst.active_voice_indicative_mood_future_tense_second_person_plural_number
45
45
  assert_equal "amābunt", @aFirst.active_voice_indicative_mood_future_tense_third_person_plural_number
46
-
46
+
47
47
  assert_equal "amāvī", @aFirst.active_voice_indicative_mood_perfect_tense_first_person_singular_number
48
48
  assert_equal "amāvistī", @aFirst.active_voice_indicative_mood_perfect_tense_second_person_singular_number
49
49
  assert_equal "amāvit", @aFirst.active_voice_indicative_mood_perfect_tense_third_person_singular_number
50
50
  assert_equal "amāvimus", @aFirst.active_voice_indicative_mood_perfect_tense_first_person_plural_number
51
51
  assert_equal "amāvistis", @aFirst.active_voice_indicative_mood_perfect_tense_second_person_plural_number
52
52
  assert_equal "amāvērunt", @aFirst.active_voice_indicative_mood_perfect_tense_third_person_plural_number
53
-
53
+
54
54
  assert_equal "amāveram", @aFirst.active_voice_indicative_mood_pastperfect_tense_first_person_singular_number
55
55
  assert_equal "amāverās", @aFirst.active_voice_indicative_mood_pastperfect_tense_second_person_singular_number
56
56
  assert_equal "amāverat", @aFirst.active_voice_indicative_mood_pastperfect_tense_third_person_singular_number
57
57
  assert_equal "amāverāmus", @aFirst.active_voice_indicative_mood_pastperfect_tense_first_person_plural_number
58
58
  assert_equal "amāverātis", @aFirst.active_voice_indicative_mood_pastperfect_tense_second_person_plural_number
59
59
  assert_equal "amāverant", @aFirst.active_voice_indicative_mood_pastperfect_tense_third_person_plural_number
60
-
60
+
61
61
  assert_equal "amāverō", @aFirst.active_voice_indicative_mood_futureperfect_tense_first_person_singular_number
62
62
  assert_equal "amāveris", @aFirst.active_voice_indicative_mood_futureperfect_tense_second_person_singular_number
63
63
  assert_equal "amāverit", @aFirst.active_voice_indicative_mood_futureperfect_tense_third_person_singular_number
64
64
  assert_equal "amāverimus", @aFirst.active_voice_indicative_mood_futureperfect_tense_first_person_plural_number
65
65
  assert_equal "amāveritis", @aFirst.active_voice_indicative_mood_futureperfect_tense_second_person_plural_number
66
66
  assert_equal "amāverint", @aFirst.active_voice_indicative_mood_futureperfect_tense_third_person_plural_number
67
-
67
+
68
68
  # Passive Present
69
-
69
+
70
70
  assert_equal "amor", @aFirst.passive_voice_indicative_mood_present_tense_first_person_singular_number
71
71
  assert_equal "amāris", @aFirst.passive_voice_indicative_mood_present_tense_second_person_singular_number
72
72
  assert_equal "amātur", @aFirst.passive_voice_indicative_mood_present_tense_third_person_singular_number
73
73
  assert_equal "amāmur", @aFirst.passive_voice_indicative_mood_present_tense_first_person_plural_number
74
74
  assert_equal "amāminī", @aFirst.passive_voice_indicative_mood_present_tense_second_person_plural_number
75
75
  assert_equal "amantur", @aFirst.passive_voice_indicative_mood_present_tense_third_person_plural_number
76
-
76
+
77
77
  assert_equal "amābar", @aFirst.passive_voice_indicative_mood_imperfect_tense_first_person_singular_number
78
78
  assert_equal "amābāris", @aFirst.passive_voice_indicative_mood_imperfect_tense_second_person_singular_number
79
79
  assert_equal "amābātur", @aFirst.passive_voice_indicative_mood_imperfect_tense_third_person_singular_number
@@ -94,14 +94,14 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
94
94
  assert_equal "amatum est", @aFirst.passive_voice_indicative_mood_perfect_tense_third_person_singular_number
95
95
  assert_equal "amatum sumus", @aFirst.passive_voice_indicative_mood_perfect_tense_first_person_plural_number
96
96
  assert_equal "amatum estis", @aFirst.passive_voice_indicative_mood_perfect_tense_second_person_plural_number
97
- assert_equal "amatum sunt", @aFirst.passive_voice_indicative_mood_perfect_tense_third_person_plural_number
98
-
97
+ assert_equal "amatum sunt", @aFirst.passive_voice_indicative_mood_perfect_tense_third_person_plural_number
98
+
99
99
  assert_equal "amatum eram", @aFirst.passive_voice_indicative_mood_pastperfect_tense_first_person_singular_number
100
100
  assert_equal "amatum erās", @aFirst.passive_voice_indicative_mood_pastperfect_tense_second_person_singular_number
101
101
  assert_equal "amatum erat", @aFirst.passive_voice_indicative_mood_pastperfect_tense_third_person_singular_number
102
102
  assert_equal "amatum erāmus", @aFirst.passive_voice_indicative_mood_pastperfect_tense_first_person_plural_number
103
103
  assert_equal "amatum erātis", @aFirst.passive_voice_indicative_mood_pastperfect_tense_second_person_plural_number
104
- assert_equal "amatum erant", @aFirst.passive_voice_indicative_mood_pastperfect_tense_third_person_plural_number
104
+ assert_equal "amatum erant", @aFirst.passive_voice_indicative_mood_pastperfect_tense_third_person_plural_number
105
105
 
106
106
  assert_equal "amatum erō", @aFirst.passive_voice_indicative_mood_futureperfect_tense_first_person_singular_number
107
107
  assert_equal "amatum eris", @aFirst.passive_voice_indicative_mood_futureperfect_tense_second_person_singular_number
@@ -109,7 +109,7 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
109
109
  assert_equal "amatum erimus", @aFirst.passive_voice_indicative_mood_futureperfect_tense_first_person_plural_number
110
110
  assert_equal "amatum eritis", @aFirst.passive_voice_indicative_mood_futureperfect_tense_second_person_plural_number
111
111
  assert_equal "amatum erint", @aFirst.passive_voice_indicative_mood_futureperfect_tense_third_person_plural_number
112
-
112
+
113
113
  ### Subjunctives
114
114
  # Active
115
115
  assert_equal "amem", @aFirst.active_voice_subjunctive_mood_present_tense_first_person_singular_number
@@ -118,28 +118,28 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
118
118
  assert_equal "amēmus", @aFirst.active_voice_subjunctive_mood_present_tense_first_person_plural_number
119
119
  assert_equal "amētis", @aFirst.active_voice_subjunctive_mood_present_tense_second_person_plural_number
120
120
  assert_equal "ament", @aFirst.active_voice_subjunctive_mood_present_tense_third_person_plural_number
121
-
121
+
122
122
  assert_equal "amārem", @aFirst.active_voice_subjunctive_mood_imperfect_tense_first_person_singular_number
123
123
  assert_equal "amārēs", @aFirst.active_voice_subjunctive_mood_imperfect_tense_second_person_singular_number
124
124
  assert_equal "amāret", @aFirst.active_voice_subjunctive_mood_imperfect_tense_third_person_singular_number
125
125
  assert_equal "amārēmus", @aFirst.active_voice_subjunctive_mood_imperfect_tense_first_person_plural_number
126
126
  assert_equal "amārētis", @aFirst.active_voice_subjunctive_mood_imperfect_tense_second_person_plural_number
127
127
  assert_equal "amārent", @aFirst.active_voice_subjunctive_mood_imperfect_tense_third_person_plural_number
128
-
128
+
129
129
  assert_equal "amāverim", @aFirst.active_voice_subjunctive_mood_perfect_tense_first_person_singular_number
130
130
  assert_equal "amāverīs", @aFirst.active_voice_subjunctive_mood_perfect_tense_second_person_singular_number
131
131
  assert_equal "amāverit", @aFirst.active_voice_subjunctive_mood_perfect_tense_third_person_singular_number
132
132
  assert_equal "amāverīmus", @aFirst.active_voice_subjunctive_mood_perfect_tense_first_person_plural_number
133
133
  assert_equal "amāverītis", @aFirst.active_voice_subjunctive_mood_perfect_tense_second_person_plural_number
134
134
  assert_equal "amāverint", @aFirst.active_voice_subjunctive_mood_perfect_tense_third_person_plural_number
135
-
135
+
136
136
  assert_equal "amāvissem", @aFirst.active_voice_subjunctive_mood_pastperfect_tense_first_person_singular_number
137
137
  assert_equal "amāvissēs", @aFirst.active_voice_subjunctive_mood_pastperfect_tense_second_person_singular_number
138
138
  assert_equal "amāvisset", @aFirst.active_voice_subjunctive_mood_pastperfect_tense_third_person_singular_number
139
139
  assert_equal "amāvissēmus", @aFirst.active_voice_subjunctive_mood_pastperfect_tense_first_person_plural_number
140
140
  assert_equal "amāvissētis", @aFirst.active_voice_subjunctive_mood_pastperfect_tense_second_person_plural_number
141
141
  assert_equal "amāvissent", @aFirst.active_voice_subjunctive_mood_pastperfect_tense_third_person_plural_number
142
-
142
+
143
143
  #passive
144
144
  assert_equal "amer", @aFirst.passive_voice_subjunctive_mood_present_tense_first_person_singular_number
145
145
  assert_equal "amēris", @aFirst.passive_voice_subjunctive_mood_present_tense_second_person_singular_number
@@ -147,51 +147,51 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
147
147
  assert_equal "amēmur", @aFirst.passive_voice_subjunctive_mood_present_tense_first_person_plural_number
148
148
  assert_equal "amēminī", @aFirst.passive_voice_subjunctive_mood_present_tense_second_person_plural_number
149
149
  assert_equal "amentur", @aFirst.passive_voice_subjunctive_mood_present_tense_third_person_plural_number
150
-
150
+
151
151
  assert_equal "amārer", @aFirst.passive_voice_subjunctive_mood_imperfect_tense_first_person_singular_number
152
152
  assert_equal "amārēris", @aFirst.passive_voice_subjunctive_mood_imperfect_tense_second_person_singular_number
153
153
  assert_equal "amārētur", @aFirst.passive_voice_subjunctive_mood_imperfect_tense_third_person_singular_number
154
154
  assert_equal "amārēmur", @aFirst.passive_voice_subjunctive_mood_imperfect_tense_first_person_plural_number
155
155
  assert_equal "amārēminī", @aFirst.passive_voice_subjunctive_mood_imperfect_tense_second_person_plural_number
156
156
  assert_equal "amārentur", @aFirst.passive_voice_subjunctive_mood_imperfect_tense_third_person_plural_number
157
-
157
+
158
158
  assert_equal "[ amatus, amata, amatum ] sim", @aFirst.passive_voice_subjunctive_mood_perfect_tense_first_person_singular_number
159
159
  assert_equal "[ amatus, amata, amatum ] sis", @aFirst.passive_voice_subjunctive_mood_perfect_tense_second_person_singular_number
160
160
  assert_equal "[ amatus, amata, amatum ] sit", @aFirst.passive_voice_subjunctive_mood_perfect_tense_third_person_singular_number
161
161
  assert_equal "[ amatī, amatae, amata ] simus", @aFirst.passive_voice_subjunctive_mood_perfect_tense_first_person_plural_number
162
162
  assert_equal "[ amatī, amatae, amata ] sitis", @aFirst.passive_voice_subjunctive_mood_perfect_tense_second_person_plural_number
163
163
  assert_equal "[ amatī, amatae, amata ] sint", @aFirst.passive_voice_subjunctive_mood_perfect_tense_third_person_plural_number
164
-
164
+
165
165
  assert_equal "[ amatus, amata, amatum ] essem", @aFirst.passive_voice_subjunctive_mood_pastperfect_tense_first_person_singular_number
166
166
  assert_equal "[ amatus, amata, amatum ] essēs", @aFirst.passive_voice_subjunctive_mood_pastperfect_tense_second_person_singular_number
167
167
  assert_equal "[ amatus, amata, amatum ] esset", @aFirst.passive_voice_subjunctive_mood_pastperfect_tense_third_person_singular_number
168
168
  assert_equal "[ amatī, amatae, amata ] essēmus", @aFirst.passive_voice_subjunctive_mood_pastperfect_tense_first_person_plural_number
169
169
  assert_equal "[ amatī, amatae, amata ] essētis", @aFirst.passive_voice_subjunctive_mood_pastperfect_tense_second_person_plural_number
170
170
  assert_equal "[ amatī, amatae, amata ] essent", @aFirst.passive_voice_subjunctive_mood_pastperfect_tense_third_person_plural_number
171
-
172
-
171
+
172
+
173
173
  # Imperatives
174
174
  assert(@aFirst.imperatives)
175
175
  assert_equal "amā", @aFirst.imperatives[0]
176
176
  assert_equal "amāte", @aFirst.imperatives[1]
177
-
177
+
178
178
  # Participles
179
- assert_equal "amāns, amantis", @aFirst.present_active_participle
179
+ assert_equal "amāns, amantis", @aFirst.present_active_participle
180
180
  assert_equal "amatūrus, amatūra, amatūrum", @aFirst.future_active_participle
181
181
  assert_equal "amatus, amata, amatum", @aFirst.perfect_passive_participle
182
182
  assert_equal "amandus, amanda, amandum", @aFirst.future_passive_participle
183
-
183
+
184
184
  # Infinitves
185
185
  assert_equal "amāre", @aFirst.present_active_infinitive
186
186
  assert_equal "amāvīsse", @aFirst.perfect_active_infinitive
187
187
  assert_equal "amatūrus esse", @aFirst.future_active_infinitive
188
188
  assert_equal "amārī", @aFirst.present_passive_infinitive
189
- assert_equal "amatus, amata, amatum esse", @aFirst.perfect_passive_infinitive
189
+ assert_equal "amatus, amata, amatum esse", @aFirst.perfect_passive_infinitive
190
190
  assert_equal "amatum īrī", @aFirst.future_passive_infinitive
191
191
  end
192
192
 
193
193
  def test_json_serialize_deserialize
194
- serializedFirstconj = @aFirst.to_json
194
+ serializedFirstconj = @aFirst.to_json
195
195
  assert(serializedFirstconj)
196
196
 
197
197
  revivified = JSON.parse serializedFirstconj
@@ -199,7 +199,7 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
199
199
 
200
200
  _test_first_conj_exhaustively_post_reviv revivified
201
201
  end
202
-
202
+
203
203
  def _test_first_conj_exhaustively_post_reviv(a)
204
204
  assert a.active_voice_imperative_mood_present_tense[1]
205
205
  assert !(a.active_voice_imperative_mood_present_tense.empty?), "Should not return nil."
@@ -209,51 +209,51 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
209
209
  assert_equal "amāmus", a.active_voice_indicative_mood_present_tense_first_person_plural_number
210
210
  assert_equal "amātis", a.active_voice_indicative_mood_present_tense_second_person_plural_number
211
211
  assert_equal "amant", a.active_voice_indicative_mood_present_tense_third_person_plural_number
212
-
212
+
213
213
  assert_equal "amābam", a.active_voice_indicative_mood_imperfect_tense_first_person_singular_number
214
214
  assert_equal "amābās", a.active_voice_indicative_mood_imperfect_tense_second_person_singular_number
215
215
  assert_equal "amābat", a.active_voice_indicative_mood_imperfect_tense_third_person_singular_number
216
216
  assert_equal "amābāmus", a.active_voice_indicative_mood_imperfect_tense_first_person_plural_number
217
217
  assert_equal "amābātis", a.active_voice_indicative_mood_imperfect_tense_second_person_plural_number
218
218
  assert_equal "amābant", a.active_voice_indicative_mood_imperfect_tense_third_person_plural_number
219
-
219
+
220
220
  assert_equal "amābō", a.active_voice_indicative_mood_future_tense_first_person_singular_number
221
221
  assert_equal "amābis", a.active_voice_indicative_mood_future_tense_second_person_singular_number
222
222
  assert_equal "amābit", a.active_voice_indicative_mood_future_tense_third_person_singular_number
223
223
  assert_equal "amābimus", a.active_voice_indicative_mood_future_tense_first_person_plural_number
224
224
  assert_equal "amābitis", a.active_voice_indicative_mood_future_tense_second_person_plural_number
225
225
  assert_equal "amābunt", a.active_voice_indicative_mood_future_tense_third_person_plural_number
226
-
226
+
227
227
  assert_equal "amāvī", a.active_voice_indicative_mood_perfect_tense_first_person_singular_number
228
228
  assert_equal "amāvistī", a.active_voice_indicative_mood_perfect_tense_second_person_singular_number
229
229
  assert_equal "amāvit", a.active_voice_indicative_mood_perfect_tense_third_person_singular_number
230
230
  assert_equal "amāvimus", a.active_voice_indicative_mood_perfect_tense_first_person_plural_number
231
231
  assert_equal "amāvistis", a.active_voice_indicative_mood_perfect_tense_second_person_plural_number
232
232
  assert_equal "amāvērunt", a.active_voice_indicative_mood_perfect_tense_third_person_plural_number
233
-
233
+
234
234
  assert_equal "amāveram", a.active_voice_indicative_mood_pastperfect_tense_first_person_singular_number
235
235
  assert_equal "amāverās", a.active_voice_indicative_mood_pastperfect_tense_second_person_singular_number
236
236
  assert_equal "amāverat", a.active_voice_indicative_mood_pastperfect_tense_third_person_singular_number
237
237
  assert_equal "amāverāmus", a.active_voice_indicative_mood_pastperfect_tense_first_person_plural_number
238
238
  assert_equal "amāverātis", a.active_voice_indicative_mood_pastperfect_tense_second_person_plural_number
239
239
  assert_equal "amāverant", a.active_voice_indicative_mood_pastperfect_tense_third_person_plural_number
240
-
240
+
241
241
  assert_equal "amāverō", a.active_voice_indicative_mood_futureperfect_tense_first_person_singular_number
242
242
  assert_equal "amāveris", a.active_voice_indicative_mood_futureperfect_tense_second_person_singular_number
243
243
  assert_equal "amāverit", a.active_voice_indicative_mood_futureperfect_tense_third_person_singular_number
244
244
  assert_equal "amāverimus", a.active_voice_indicative_mood_futureperfect_tense_first_person_plural_number
245
245
  assert_equal "amāveritis", a.active_voice_indicative_mood_futureperfect_tense_second_person_plural_number
246
246
  assert_equal "amāverint", a.active_voice_indicative_mood_futureperfect_tense_third_person_plural_number
247
-
247
+
248
248
  # Passive Present
249
-
249
+
250
250
  assert_equal "amor", a.passive_voice_indicative_mood_present_tense_first_person_singular_number
251
251
  assert_equal "amāris", a.passive_voice_indicative_mood_present_tense_second_person_singular_number
252
252
  assert_equal "amātur", a.passive_voice_indicative_mood_present_tense_third_person_singular_number
253
253
  assert_equal "amāmur", a.passive_voice_indicative_mood_present_tense_first_person_plural_number
254
254
  assert_equal "amāminī", a.passive_voice_indicative_mood_present_tense_second_person_plural_number
255
255
  assert_equal "amantur", a.passive_voice_indicative_mood_present_tense_third_person_plural_number
256
-
256
+
257
257
  assert_equal "amābar", a.passive_voice_indicative_mood_imperfect_tense_first_person_singular_number
258
258
  assert_equal "amābāris", a.passive_voice_indicative_mood_imperfect_tense_second_person_singular_number
259
259
  assert_equal "amābātur", a.passive_voice_indicative_mood_imperfect_tense_third_person_singular_number
@@ -274,14 +274,14 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
274
274
  assert_equal "amatum est", a.passive_voice_indicative_mood_perfect_tense_third_person_singular_number
275
275
  assert_equal "amatum sumus", a.passive_voice_indicative_mood_perfect_tense_first_person_plural_number
276
276
  assert_equal "amatum estis", a.passive_voice_indicative_mood_perfect_tense_second_person_plural_number
277
- assert_equal "amatum sunt", a.passive_voice_indicative_mood_perfect_tense_third_person_plural_number
278
-
277
+ assert_equal "amatum sunt", a.passive_voice_indicative_mood_perfect_tense_third_person_plural_number
278
+
279
279
  assert_equal "amatum eram", a.passive_voice_indicative_mood_pastperfect_tense_first_person_singular_number
280
280
  assert_equal "amatum erās", a.passive_voice_indicative_mood_pastperfect_tense_second_person_singular_number
281
281
  assert_equal "amatum erat", a.passive_voice_indicative_mood_pastperfect_tense_third_person_singular_number
282
282
  assert_equal "amatum erāmus", a.passive_voice_indicative_mood_pastperfect_tense_first_person_plural_number
283
283
  assert_equal "amatum erātis", a.passive_voice_indicative_mood_pastperfect_tense_second_person_plural_number
284
- assert_equal "amatum erant", a.passive_voice_indicative_mood_pastperfect_tense_third_person_plural_number
284
+ assert_equal "amatum erant", a.passive_voice_indicative_mood_pastperfect_tense_third_person_plural_number
285
285
 
286
286
  assert_equal "amatum erō", a.passive_voice_indicative_mood_futureperfect_tense_first_person_singular_number
287
287
  assert_equal "amatum eris", a.passive_voice_indicative_mood_futureperfect_tense_second_person_singular_number
@@ -289,7 +289,7 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
289
289
  assert_equal "amatum erimus", a.passive_voice_indicative_mood_futureperfect_tense_first_person_plural_number
290
290
  assert_equal "amatum eritis", a.passive_voice_indicative_mood_futureperfect_tense_second_person_plural_number
291
291
  assert_equal "amatum erint", a.passive_voice_indicative_mood_futureperfect_tense_third_person_plural_number
292
-
292
+
293
293
  ### Subjunctives
294
294
  # Active
295
295
  assert_equal "amem", a.active_voice_subjunctive_mood_present_tense_first_person_singular_number
@@ -298,28 +298,28 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
298
298
  assert_equal "amēmus", a.active_voice_subjunctive_mood_present_tense_first_person_plural_number
299
299
  assert_equal "amētis", a.active_voice_subjunctive_mood_present_tense_second_person_plural_number
300
300
  assert_equal "ament", a.active_voice_subjunctive_mood_present_tense_third_person_plural_number
301
-
301
+
302
302
  assert_equal "amārem", a.active_voice_subjunctive_mood_imperfect_tense_first_person_singular_number
303
303
  assert_equal "amārēs", a.active_voice_subjunctive_mood_imperfect_tense_second_person_singular_number
304
304
  assert_equal "amāret", a.active_voice_subjunctive_mood_imperfect_tense_third_person_singular_number
305
305
  assert_equal "amārēmus", a.active_voice_subjunctive_mood_imperfect_tense_first_person_plural_number
306
306
  assert_equal "amārētis", a.active_voice_subjunctive_mood_imperfect_tense_second_person_plural_number
307
307
  assert_equal "amārent", a.active_voice_subjunctive_mood_imperfect_tense_third_person_plural_number
308
-
308
+
309
309
  assert_equal "amāverim", a.active_voice_subjunctive_mood_perfect_tense_first_person_singular_number
310
310
  assert_equal "amāverīs", a.active_voice_subjunctive_mood_perfect_tense_second_person_singular_number
311
311
  assert_equal "amāverit", a.active_voice_subjunctive_mood_perfect_tense_third_person_singular_number
312
312
  assert_equal "amāverīmus", a.active_voice_subjunctive_mood_perfect_tense_first_person_plural_number
313
313
  assert_equal "amāverītis", a.active_voice_subjunctive_mood_perfect_tense_second_person_plural_number
314
314
  assert_equal "amāverint", a.active_voice_subjunctive_mood_perfect_tense_third_person_plural_number
315
-
315
+
316
316
  assert_equal "amāvissem", a.active_voice_subjunctive_mood_pastperfect_tense_first_person_singular_number
317
317
  assert_equal "amāvissēs", a.active_voice_subjunctive_mood_pastperfect_tense_second_person_singular_number
318
318
  assert_equal "amāvisset", a.active_voice_subjunctive_mood_pastperfect_tense_third_person_singular_number
319
319
  assert_equal "amāvissēmus", a.active_voice_subjunctive_mood_pastperfect_tense_first_person_plural_number
320
320
  assert_equal "amāvissētis", a.active_voice_subjunctive_mood_pastperfect_tense_second_person_plural_number
321
321
  assert_equal "amāvissent", a.active_voice_subjunctive_mood_pastperfect_tense_third_person_plural_number
322
-
322
+
323
323
  #passive
324
324
  assert_equal "amer", a.passive_voice_subjunctive_mood_present_tense_first_person_singular_number
325
325
  assert_equal "amēris", a.passive_voice_subjunctive_mood_present_tense_second_person_singular_number
@@ -327,48 +327,48 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
327
327
  assert_equal "amēmur", a.passive_voice_subjunctive_mood_present_tense_first_person_plural_number
328
328
  assert_equal "amēminī", a.passive_voice_subjunctive_mood_present_tense_second_person_plural_number
329
329
  assert_equal "amentur", a.passive_voice_subjunctive_mood_present_tense_third_person_plural_number
330
-
330
+
331
331
  assert_equal "amārer", a.passive_voice_subjunctive_mood_imperfect_tense_first_person_singular_number
332
332
  assert_equal "amārēris", a.passive_voice_subjunctive_mood_imperfect_tense_second_person_singular_number
333
333
  assert_equal "amārētur", a.passive_voice_subjunctive_mood_imperfect_tense_third_person_singular_number
334
334
  assert_equal "amārēmur", a.passive_voice_subjunctive_mood_imperfect_tense_first_person_plural_number
335
335
  assert_equal "amārēminī", a.passive_voice_subjunctive_mood_imperfect_tense_second_person_plural_number
336
336
  assert_equal "amārentur", a.passive_voice_subjunctive_mood_imperfect_tense_third_person_plural_number
337
-
337
+
338
338
  assert_equal "[ amatus, amata, amatum ] sim", a.passive_voice_subjunctive_mood_perfect_tense_first_person_singular_number
339
339
  assert_equal "[ amatus, amata, amatum ] sis", a.passive_voice_subjunctive_mood_perfect_tense_second_person_singular_number
340
340
  assert_equal "[ amatus, amata, amatum ] sit", a.passive_voice_subjunctive_mood_perfect_tense_third_person_singular_number
341
341
  assert_equal "[ amatī, amatae, amata ] simus", a.passive_voice_subjunctive_mood_perfect_tense_first_person_plural_number
342
342
  assert_equal "[ amatī, amatae, amata ] sitis", a.passive_voice_subjunctive_mood_perfect_tense_second_person_plural_number
343
343
  assert_equal "[ amatī, amatae, amata ] sint", a.passive_voice_subjunctive_mood_perfect_tense_third_person_plural_number
344
-
344
+
345
345
  assert_equal "[ amatus, amata, amatum ] essem", a.passive_voice_subjunctive_mood_pastperfect_tense_first_person_singular_number
346
346
  assert_equal "[ amatus, amata, amatum ] essēs", a.passive_voice_subjunctive_mood_pastperfect_tense_second_person_singular_number
347
347
  assert_equal "[ amatus, amata, amatum ] esset", a.passive_voice_subjunctive_mood_pastperfect_tense_third_person_singular_number
348
348
  assert_equal "[ amatī, amatae, amata ] essēmus", a.passive_voice_subjunctive_mood_pastperfect_tense_first_person_plural_number
349
349
  assert_equal "[ amatī, amatae, amata ] essētis", a.passive_voice_subjunctive_mood_pastperfect_tense_second_person_plural_number
350
350
  assert_equal "[ amatī, amatae, amata ] essent", a.passive_voice_subjunctive_mood_pastperfect_tense_third_person_plural_number
351
-
352
-
351
+
352
+
353
353
  # Imperatives
354
354
  assert(a.imperatives)
355
355
  assert_equal "amā", a.imperatives[0]
356
356
  assert_equal "amāte", a.imperatives[1]
357
-
357
+
358
358
  # Participles
359
- assert_equal "amāns, amantis", a.present_active_participle
359
+ assert_equal "amāns, amantis", a.present_active_participle
360
360
  assert_equal "amatūrus, amatūra, amatūrum", a.future_active_participle
361
361
  assert_equal "amatus, amata, amatum", a.perfect_passive_participle
362
362
  assert_equal "amandus, amanda, amandum", a.future_passive_participle
363
-
363
+
364
364
  # Infinitves
365
365
  assert_equal "amāre", a.present_active_infinitive
366
366
  assert_equal "amāvīsse", a.perfect_active_infinitive
367
367
  assert_equal "amatūrus esse", a.future_active_infinitive
368
368
  assert_equal "amārī", a.present_passive_infinitive
369
- assert_equal "amatus, amata, amatum esse", a.perfect_passive_infinitive
369
+ assert_equal "amatus, amata, amatum esse", a.perfect_passive_infinitive
370
370
  end
371
-
371
+
372
372
  def testInstanceMethods
373
373
  assert @aFirst.instance_methods, "Should respond to #instance_methods"
374
374
  end
@@ -64,7 +64,7 @@ class TestLatinVerbFourthConj < MiniTest::Unit::TestCase # :nodoc:
64
64
  assert_equal "audīveritis", @aFourth.active_voice_indicative_mood_futureperfect_tense_second_person_plural_number
65
65
  assert_equal "audīverint", @aFourth.active_voice_indicative_mood_futureperfect_tense_third_person_plural_number
66
66
 
67
- # Passive Present
67
+ # Passive Present
68
68
 
69
69
  assert_equal "audior", @aFourth.passive_voice_indicative_mood_present_tense_first_person_singular_number
70
70
  assert_equal "audīris", @aFourth.passive_voice_indicative_mood_present_tense_second_person_singular_number
@@ -87,20 +87,20 @@ class TestLatinVerbFourthConj < MiniTest::Unit::TestCase # :nodoc:
87
87
  assert_equal "audiēminī", @aFourth.passive_voice_indicative_mood_future_tense_second_person_plural_number
88
88
  assert_equal "audientur", @aFourth.passive_voice_indicative_mood_future_tense_third_person_plural_number
89
89
 
90
- # Passive perfect
90
+ # Passive perfect
91
91
  assert_equal "auditum sum", @aFourth.passive_voice_indicative_mood_perfect_tense_first_person_singular_number
92
92
  assert_equal "auditum es", @aFourth.passive_voice_indicative_mood_perfect_tense_second_person_singular_number
93
93
  assert_equal "auditum est", @aFourth.passive_voice_indicative_mood_perfect_tense_third_person_singular_number
94
94
  assert_equal "auditum sumus", @aFourth.passive_voice_indicative_mood_perfect_tense_first_person_plural_number
95
95
  assert_equal "auditum estis", @aFourth.passive_voice_indicative_mood_perfect_tense_second_person_plural_number
96
- assert_equal "auditum sunt", @aFourth.passive_voice_indicative_mood_perfect_tense_third_person_plural_number
96
+ assert_equal "auditum sunt", @aFourth.passive_voice_indicative_mood_perfect_tense_third_person_plural_number
97
97
 
98
98
  assert_equal "auditum eram", @aFourth.passive_voice_indicative_mood_pastperfect_tense_first_person_singular_number
99
99
  assert_equal "auditum erās", @aFourth.passive_voice_indicative_mood_pastperfect_tense_second_person_singular_number
100
100
  assert_equal "auditum erat", @aFourth.passive_voice_indicative_mood_pastperfect_tense_third_person_singular_number
101
101
  assert_equal "auditum erāmus", @aFourth.passive_voice_indicative_mood_pastperfect_tense_first_person_plural_number
102
102
  assert_equal "auditum erātis", @aFourth.passive_voice_indicative_mood_pastperfect_tense_second_person_plural_number
103
- assert_equal "auditum erant", @aFourth.passive_voice_indicative_mood_pastperfect_tense_third_person_plural_number
103
+ assert_equal "auditum erant", @aFourth.passive_voice_indicative_mood_pastperfect_tense_third_person_plural_number
104
104
 
105
105
  assert_equal "auditum erō", @aFourth.passive_voice_indicative_mood_futureperfect_tense_first_person_singular_number
106
106
  assert_equal "auditum eris", @aFourth.passive_voice_indicative_mood_futureperfect_tense_second_person_singular_number
@@ -109,8 +109,8 @@ class TestLatinVerbFourthConj < MiniTest::Unit::TestCase # :nodoc:
109
109
  assert_equal "auditum eritis", @aFourth.passive_voice_indicative_mood_futureperfect_tense_second_person_plural_number
110
110
  assert_equal "auditum erint", @aFourth.passive_voice_indicative_mood_futureperfect_tense_third_person_plural_number
111
111
 
112
- ### Subjunctives
113
- # Active
112
+ ### Subjunctives
113
+ # Active
114
114
  assert_equal "audiam", @aFourth.active_voice_subjunctive_mood_present_tense_first_person_singular_number
115
115
  assert_equal "audiās", @aFourth.active_voice_subjunctive_mood_present_tense_second_person_singular_number
116
116
  assert_equal "audiat", @aFourth.active_voice_subjunctive_mood_present_tense_third_person_singular_number
@@ -139,7 +139,7 @@ class TestLatinVerbFourthConj < MiniTest::Unit::TestCase # :nodoc:
139
139
  assert_equal "audīvissētis", @aFourth.active_voice_subjunctive_mood_pastperfect_tense_second_person_plural_number
140
140
  assert_equal "audīvissent", @aFourth.active_voice_subjunctive_mood_pastperfect_tense_third_person_plural_number
141
141
 
142
- #passive
142
+ #passive
143
143
  assert_equal "audiar", @aFourth.passive_voice_subjunctive_mood_present_tense_first_person_singular_number
144
144
  assert_equal "audiāris", @aFourth.passive_voice_subjunctive_mood_present_tense_second_person_singular_number
145
145
  assert_equal "audiātur", @aFourth.passive_voice_subjunctive_mood_present_tense_third_person_singular_number
@@ -167,23 +167,23 @@ class TestLatinVerbFourthConj < MiniTest::Unit::TestCase # :nodoc:
167
167
  assert_equal "[ auditī, auditae, audita ] essēmus", @aFourth.passive_voice_subjunctive_mood_pastperfect_tense_first_person_plural_number
168
168
  assert_equal "[ auditī, auditae, audita ] essētis", @aFourth.passive_voice_subjunctive_mood_pastperfect_tense_second_person_plural_number
169
169
  assert_equal "[ auditī, auditae, audita ] essent", @aFourth.passive_voice_subjunctive_mood_pastperfect_tense_third_person_plural_number
170
-
170
+
171
171
  # Imperatives
172
172
  assert_equal "audī", @aFourth.imperatives[0]
173
173
  assert_equal "audīte", @aFourth.imperatives[1]
174
174
 
175
175
  # Participles
176
- assert_equal"audiēns, audientis", @aFourth.present_active_participle
176
+ assert_equal"audiēns, audientis", @aFourth.present_active_participle
177
177
  assert_equal"auditūrus, auditūra, auditūrum", @aFourth.future_active_participle
178
178
  assert_equal"auditus, audita, auditum", @aFourth.perfect_passive_participle
179
179
  assert_equal"audiendus, audienda, audiendum", @aFourth.future_passive_participle
180
180
 
181
- # Infinitves
181
+ # Infinitves
182
182
  assert_equal "audīre", @aFourth.present_active_infinitive
183
183
  assert_equal "audīvīsse", @aFourth.perfect_active_infinitive
184
184
  assert_equal "auditūrus esse", @aFourth.future_active_infinitive
185
185
  assert_equal "audīrī", @aFourth.present_passive_infinitive
186
- assert_equal "auditus, audita, auditum esse", @aFourth.perfect_passive_infinitive
186
+ assert_equal "auditus, audita, auditum esse", @aFourth.perfect_passive_infinitive
187
187
  assert_equal "auditum īrī", @aFourth.future_passive_infinitive
188
188
  end
189
189
 
@@ -10,18 +10,20 @@ require 'linguistics/latin/verb/classification_types'
10
10
  # Internal dependencies
11
11
 
12
12
  class TestFreakishVerbs < MiniTest::Unit::TestCase # :nodoc:
13
- def test_present_only
13
+ def test_present_only?
14
14
  v = Linguistics::Latin::Verb::LatinVerb.new 'maerō maēre maīvī maestum'
15
- assert v.present_only
16
- assert_equal 6, v.active_voice_indicative_mood_perfect_tense.length
17
- assert_equal '', v.active_voice_indicative_mood_perfect_tense_first_person_singular_number
15
+ assert v.present_only?
16
+ assert_equal 6, v.active_voice_indicative_mood_perfect_tense.length, "active.indicative.perfect should have length of 6"
17
+ assert_equal '', v.active_voice_indicative_mood_perfect_tense_first_person_singular_number, "a perfect tense for a present only verb should be empty"
18
18
  end
19
+
19
20
  def test_present_only_from_sing
20
21
  v = Linguistics::Latin::Verb::LatinVerb.new 'aiō'
21
- assert v.present_only
22
+ assert v.present_only?
22
23
 
23
24
  # Primary use of this verb
24
- assert_equal 'ait', v.active_voice_indicative_mood_present_tense_third_person_singular_number
25
+ assert_equal 'ait', v.active_voice_indicative_mood_present_tense_third_person_singular_number,
26
+ "Must respond to active_voice_indicative_mood_present_tense_third_person_singular_number"
25
27
 
26
28
  end
27
29
 
@@ -30,17 +32,17 @@ class TestFreakishVerbs < MiniTest::Unit::TestCase # :nodoc:
30
32
 
31
33
  choices.each do |v|
32
34
  vi = Linguistics::Latin::Verb::LatinVerb.new v
33
- assert vi.present_only
35
+ assert vi.present_only?, "#{v} must be present only"
34
36
  end
35
37
  end
36
38
 
37
39
  def test_impersonal
38
40
  v = Linguistics::Latin::Verb::LatinVerb.new 'pluit'
39
- assert_equal Linguistics::Latin::Verb::VerbTypes::Impersonal, v.classification
40
- assert_equal 'pluit', v.active_voice_indicative_mood_present_tense_third_person_singular_number
41
+ assert_equal Linguistics::Latin::Verb::Classification::Impersonal, v.classification
42
+ assert_equal 'pluit', v.active_voice_indicative_mood_present_tense_third_person_singular_number, "Impersonal verb must return third_person_singular_number"
41
43
  end
42
44
 
43
- =begin rdoc
45
+ =begin rdoc
44
46
  * 191 - Irregular deponent verbs
45
47
 
46
48
  This section in A&G says that the following are irregular deponents,
@@ -88,6 +90,5 @@ class TestFreakishVerbs < MiniTest::Unit::TestCase # :nodoc:
88
90
  def test_irregular_deponents
89
91
  v = Linguistics::Latin::Verb::LatinVerb.new 'fruor fruī frūctus '
90
92
  assert 'fruitur', v.active_voice_indicative_mood_present_tense_third_person_singular_number
91
-
92
93
  end
93
94
  end