use unicode_normalization::{is_nfc}; use verba::adjective::{Adjective}; use verba::adjective as A; use verba::verb::{Verb}; use verba::verb as V; /// Takes two `Option` references. The first value should /// be returned from `Verb::conjugate` and the second should be the /// expected value. /// /// First the two arguments are checked to make sure they are either both /// `Some` or `None`. If they are, they are sent to /// `verify_conjugation_contents`, which verifies the contents of the /// arguments. fn verify_conjugation(conjugation: &Option, expected: &Option) { match (conjugation, expected) { (Some(conjugation), Some(expected)) => verify_conjugation_contents(conjugation, expected), (None, None) => (), (Some(_), None) => panic!("Mismatched types. `conjugation` is `Some`, `expected` is `None`."), (None, Some(_)) => panic!("Mismatched types. `conjugation` is `None`, `expected` is `Some`."), } } /// Takes two `Conjugation` references. The first value should be returned /// from `Verb::conjugate` and the second should be the expected value. /// /// First the two arguments are checked to make sure they're either both /// `Conjugation::Complete` or `Conjugation::PassivePerfect`. If they are /// both `Conjugation::Complete` values, they are sent to /// `verify_conjugation_complete`. If they are both /// `Conjuation::PassivePerfect`, they are sent to /// `verify_conjugation_passive_perfect` to verify their contents. fn verify_conjugation_contents(conjugation: &V::Conjugation, expected: &V::Conjugation) { match (conjugation, expected) { (V::Conjugation::Complete(_), V::Conjugation::Complete(_)) => verify_conjugation_complete(conjugation, expected), (V::Conjugation::PassivePerfect(_, _), V::Conjugation::PassivePerfect(_, _)) => verify_conjugation_passive_perfect(conjugation, expected), (V::Conjugation::Complete(_), V::Conjugation::PassivePerfect(_, _)) => panic!("Mismatched types. `conjugation` is `Conjugation::Complete`, `expected` is `Conjugation::PassivePerfect`."), (V::Conjugation::PassivePerfect(_, _), V::Conjugation::Complete(_)) => panic!("Mismatched types. `conjugation` is `Conjugation::PassivePerfect`, `expected` is `Conjugation::Complete`."), } } /// Verifies the contents of V::Conjugation::Complete match the expected /// values. fn verify_conjugation_complete(conjugation: &V::Conjugation, expected: &V::Conjugation) { match conjugation { V::Conjugation::Complete(conjugations) => { match expected { V::Conjugation::PassivePerfect(_, _) => panic!("`expected` inside of `verify_conjugation_complete` is a `Conjugation::PassivePerfect`. `verify_conjugation_contents` is supposed to catch this."), V::Conjugation::Complete(expecteds) => { assert_eq!(conjugations.len(), expecteds.len(), "`conjugations` and `expecteds` have different lengths."); for (index, contents) in conjugations.iter().enumerate() { assert!(is_nfc(contents), "`conjugation` is not in normalized composed form."); assert_eq!(contents, &expecteds[index], "Element {} in `conjugations` is not equal to element {} in `expected`.", contents, expecteds[index]); } }, } }, V::Conjugation::PassivePerfect(_, _) => panic!("`conjugation` inside of `verify_conjugation_complete` is a `Conjugation::PassivePerfect`. `verify_conjugation_contents` is supposed to catch this."), } } /// Calls `verify_passive_perfect_declension` with every possible adjective /// declined form. fn verify_conjugation_passive_perfect(conjugation: &V::Conjugation, expected: &V::Conjugation) { match conjugation { V::Conjugation::PassivePerfect(_, _) => { match expected { V::Conjugation::Complete(_) => panic!("`expected` inside of `verify_conjugation_passive_perfect` is a `Conjugation::Complete`. `verify_conjugation_contents` is supposed to catch this."), V::Conjugation::PassivePerfect(_, _) => { verify_passive_perfect_declension(conjugation, expected, A::Number::Singular, A::Case::Nominative, A::Gender::Masculine); // TODO: Check every possible combination of Number, Case, and Gender. }, } }, V::Conjugation::Complete(_) => panic!("`conjugation` inside of `verify_conjugation_passive_perfect` is a `Conjugation::Complete`. `verify_conjugation_contents` is supposed to catch this."), } } /// Takes two `Conjugation::PassivePerfect` enums and a `Number`, `Case`, /// and `Gender`. It uses the last three arguments to get the completed /// conjugated forms of the `Conjugation::PassivePerfect` enums and /// compares them for equality. fn verify_passive_perfect_declension(conjugation: &V::Conjugation, expected: &V::Conjugation, number: A::Number, case: A::Case, gender: A::Gender) { match (conjugation, expected) { (V::Conjugation::PassivePerfect(_, _), V::Conjugation::PassivePerfect(_, _)) => { let maybe_declined_conjugation = conjugation.decline(A::Number::Singular, A::Case::Nominative, A::Gender::Masculine); let maybe_decilned_expected = expected.decline(A::Number::Singular, A::Case::Nominative, A::Gender::Masculine); // First ensure both calls to `passive_perfect_to_string` // returned `Some` or `None` values. Then ensure the `Vec` // values have the same number of elements. Finally ensure the // `Vec` values are the same. match (maybe_declined_conjugation, maybe_decilned_expected) { (Some(declined_conjugation), Some(decilned_expected)) => { assert_eq!(declined_conjugation.len(), decilned_expected.len(), "`declined_conjugation` and `declined_expected` have different lengths."); for (index, contents) in declined_conjugation.iter().enumerate() { // The unit test for `V::passive_perfect_to_string` // should test if output values are in NFC form so // that test doesn't need to be performed here. assert_eq!(contents, &decilned_expected[index], "Mismatched declined forms for {:?}, {:?}, {:?}. `conjugation` gave {}, `expected` gave {}.", number, case, gender, contents, decilned_expected[index]); } }, (None, None) => (), (Some(_), None) => panic!("`maybe_declined_conjugation` was `Some`, `maybe_conjugation_expected` was `None`."), (None, Some(_)) => panic!("`maybe_declined_conjugation` was `None`, `maybe_conjugation_expected` was `Some`."), } }, _ => panic!("`conjugation` and `expected` aren't both `Conjugation::PassivePerfect`."), } } /// Tests conjugating first declension verbs using the verb laudāre, to praise. #[test] fn test_first_conjugation_laudare() { let present_active_indicative = "laudō"; let present_active_infinitive = "laudāre"; let perfect_active_indicative = "laudāvī"; let perfect_passive_masculine = "laudātus"; let perfect_passive_feminine = "laudāta"; let perfect_passive_neuter = "laudātum"; match A::Regular::new(A::DictionaryForm::Three(perfect_passive_masculine.to_string(), perfect_passive_feminine.to_string(), perfect_passive_neuter.to_string())) { Ok(adjective) => { match V::Regular::new(present_active_indicative.to_string(), present_active_infinitive.to_string(), perfect_active_indicative.to_string(), perfect_passive_neuter.to_string()) { Ok(verb) => { // Test active indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābitis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābunt".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāvī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāvimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāvistī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāvistis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāvit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāvērunt".to_string(), "laudāvēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāveram".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāveris".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāveritis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāverint".to_string()]))); // Test passive indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudor".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāris".to_string(), "laudāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābāris".to_string(), "laudābāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābor".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābimur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudāberis".to_string(), "laudābere".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābiminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābitur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["laudābuntur".to_string()]))); // The passive perfect indicative forms return two // components, a reference to a regular adjective and a // form of sum. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sum"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sumus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "es"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "estis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "est"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sunt"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eram"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erāmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erās"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erātis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erat"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erant"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erō"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erimus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eris"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eritis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erunt"))); // Test active subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudet".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāret".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāverim".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāverīmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāverīs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāverītis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāverit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāverint".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāvissem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāvissēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāvissēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāvissētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāvisset".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudāvissent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); // Test passive subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["lauder".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudēris".to_string(), "laudēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudentur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārer".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārēris".to_string(), "laudārēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["laudārentur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sim"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sītis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sint"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essem"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essētis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "esset"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essent"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); }, Err(error) => panic!("Failed to create the verb {}, {}, {}, {}. Received the following error: {}", present_active_indicative, present_active_infinitive, perfect_active_indicative, perfect_passive_neuter, error), } }, Err(error) => panic!("Failed to create the adjective {}, {}, {}. Received the following error: {}", perfect_passive_masculine, perfect_passive_feminine, perfect_passive_neuter, error), } } /// Tests conjugating second declension verbs using the verb monēre, to advise. #[test] fn test_second_conjugation_monere() { let present_active_indicative = "moneō"; let present_active_infinitive = "monēre"; let perfect_active_indicative = "monuī"; let perfect_passive_masculine = "monitus"; let perfect_passive_feminine = "monita"; let perfect_passive_neuter = "monitum"; match A::Regular::new(A::DictionaryForm::Three(perfect_passive_masculine.to_string(), perfect_passive_feminine.to_string(), perfect_passive_neuter.to_string())) { Ok(adjective) => { match V::Regular::new(present_active_indicative.to_string(), present_active_infinitive.to_string(), perfect_active_indicative.to_string(), perfect_passive_neuter.to_string()) { Ok(verb) => { // Test active indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["moneō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monet".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbitis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbunt".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuistī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuistis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuērunt".to_string(), "monuēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monueram".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monueris".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monueritis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monuerint".to_string()]))); // Test passive indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["moneor".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēris".to_string(), "monēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monentur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbāris".to_string(), "monēbāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbor".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbimur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēberis".to_string(), "monēbere".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbiminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbitur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["monēbuntur".to_string()]))); // The passive perfect indicative forms return two // components, a reference to a regular adjective and a // form of sum. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sum"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sumus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "es"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "estis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "est"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sunt"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eram"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erāmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erās"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erātis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erat"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erant"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erō"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erimus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eris"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eritis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erunt"))); // Test active subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monēret".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuerim".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuerīmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuerīs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuerītis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuerit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuerint".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuissem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuissēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuissēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuissētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuisset".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monuissent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); // Test passive subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monear".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneāris".to_string(), "moneāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["moneantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērer".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērēris".to_string(), "monērēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["monērentur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sim"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sītis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sint"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essem"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essētis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "esset"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essent"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); }, Err(error) => panic!("Failed to create the verb {}, {}, {}, {}. Received the following error: {}", present_active_indicative, present_active_infinitive, perfect_active_indicative, perfect_passive_neuter, error), } }, Err(error) => panic!("Failed to create the adjective {}, {}, {}. Received the following error: {}", perfect_passive_masculine, perfect_passive_feminine, perfect_passive_neuter, error), } } /// Tests conjugating third declension verbs using the verb agere, to lead. #[test] fn test_third_conjugation_agere() { let present_active_indicative = "agō"; let present_active_infinitive = "agere"; let perfect_active_indicative = "ēgī"; let perfect_passive_masculine = "āctus"; let perfect_passive_feminine = "ācta"; let perfect_passive_neuter = "āctum"; match A::Regular::new(A::DictionaryForm::Three(perfect_passive_masculine.to_string(), perfect_passive_feminine.to_string(), perfect_passive_neuter.to_string())) { Ok(adjective) => { match V::Regular::new(present_active_indicative.to_string(), present_active_infinitive.to_string(), perfect_active_indicative.to_string(), perfect_passive_neuter.to_string()) { Ok(verb) => { // Test active indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agitis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agunt".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["aget".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgistī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgistis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgērunt".to_string(), "ēgēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgeram".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgeris".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgeritis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ēgerint".to_string()]))); // // Test passive indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agor".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agimur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["ageris".to_string(), "agere".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agiminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agitur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["aguntur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbāris".to_string(), "agēbāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēbantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēris".to_string(), "agēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["agentur".to_string()]))); // The passive perfect indicative forms return two // components, a reference to a regular adjective and a // form of sum. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sum"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sumus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "es"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "estis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "est"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sunt"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eram"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erāmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erās"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erātis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erat"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erant"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erō"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erimus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eris"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eritis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erunt"))); // Test active subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ageret".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgerim".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgerīmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgerīs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgerītis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgerit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgerint".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgissem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgissēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgissēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgissētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgisset".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["ēgissent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); // Test passive subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agāris".to_string(), "agāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerer".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerēris".to_string(), "agerēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["agerentur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sim"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sītis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sint"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essem"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essētis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "esset"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essent"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); }, Err(error) => panic!("Failed to create the verb {}, {}, {}, {}. Received the following error: {}", present_active_indicative, present_active_infinitive, perfect_active_indicative, perfect_passive_neuter, error), } }, Err(error) => panic!("Failed to create the adjective {}, {}, {}. Received the following error: {}", perfect_passive_masculine, perfect_passive_feminine, perfect_passive_neuter, error), } } /// Tests conjugating third declension iō verbs using the verb capere, to /// capture. #[test] fn test_third_io_conjugation_capere() { let present_active_indicative = "capiō"; let present_active_infinitive = "capere"; let perfect_active_indicative = "cēpī"; let perfect_passive_masculine = "captus"; let perfect_passive_feminine = "capta"; let perfect_passive_neuter = "captum"; match A::Regular::new(A::DictionaryForm::Three(perfect_passive_masculine.to_string(), perfect_passive_feminine.to_string(), perfect_passive_neuter.to_string())) { Ok(adjective) => { match V::Regular::new(present_active_indicative.to_string(), present_active_infinitive.to_string(), perfect_active_indicative.to_string(), perfect_passive_neuter.to_string()) { Ok(verb) => { // Test active indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capitis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiunt".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiet".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capient".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēpī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēpimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēpistī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēpistis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēpit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēpērunt".to_string(), "cēpēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperitis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["cēperint".to_string()]))); // // Test passive indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capior".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capimur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["caperis".to_string(), "capere".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capitur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiuntur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbāris".to_string(), "capiēbāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēbantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēris".to_string(), "capiēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capiētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["capientur".to_string()]))); // The passive perfect indicative forms return two // components, a reference to a regular adjective and a // form of sum. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sum"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sumus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "es"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "estis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "est"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sunt"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eram"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erāmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erās"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erātis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erat"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erant"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erō"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erimus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eris"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eritis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erunt"))); // Test active subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperet".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēperim".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēperīmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēperīs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēperītis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēperit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēperint".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēpissem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēpissēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēpissēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēpissētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēpisset".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["cēpissent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); // Test passive subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiāris".to_string(), "capiāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["capiantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperer".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperēris".to_string(), "caperēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["caperentur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sim"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sītis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sint"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essem"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essētis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "esset"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essent"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); }, Err(error) => panic!("Failed to create the verb {}, {}, {}, {}. Received the following error: {}", present_active_indicative, present_active_infinitive, perfect_active_indicative, perfect_passive_neuter, error), } }, Err(error) => panic!("Failed to create the adjective {}, {}, {}. Received the following error: {}", perfect_passive_masculine, perfect_passive_feminine, perfect_passive_neuter, error), } } /// Tests conjugating fourth declension verbs using the verb audīre, to hear. #[test] fn test_fourth_conjugation_audire() { let present_active_indicative = "audiō"; let present_active_infinitive = "audīre"; let perfect_active_indicative = "audīvī"; let perfect_passive_masculine = "audītus"; let perfect_passive_feminine = "audīta"; let perfect_passive_neuter = "audītum"; match A::Regular::new(A::DictionaryForm::Three(perfect_passive_masculine.to_string(), perfect_passive_feminine.to_string(), perfect_passive_neuter.to_string())) { Ok(adjective) => { match V::Regular::new(present_active_indicative.to_string(), present_active_infinitive.to_string(), perfect_active_indicative.to_string(), perfect_passive_neuter.to_string()) { Ok(verb) => { // Test active indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audītis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiunt".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiet".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audient".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīvī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīvimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīvistī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīvistis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīvit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīvērunt".to_string(), "audīvēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīveram".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverō".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverimus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīveris".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīveritis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīverint".to_string()]))); // // Test passive indicative conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audior".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīris".to_string(), "audīre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audīminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audītur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiuntur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbāris".to_string(), "audiēbāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēbantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēris".to_string(), "audiēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audiētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::Complete(vec!["audientur".to_string()]))); // The passive perfect indicative forms return two // components, a reference to a regular adjective and a // form of sum. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sum"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sumus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "es"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "estis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "est"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "sunt"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eram"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erāmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erās"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erātis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erat"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erant"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erō"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erimus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eris"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "eritis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Indicative), &Some(V::Conjugation::PassivePerfect(&adjective, "erunt"))); // Test active subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiam".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiāmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiās".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiātis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiat".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiant".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīret".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Future, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīverim".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīverīmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīverīs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīverītis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīverit".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīverint".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīvissem".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīvissēmus".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīvissēs".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīvissētis".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīvisset".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Active, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīvissent".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Active, V::Mood::Subjunctive), &None); // Test passive subjunctive conjugations. verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiar".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiāmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiāris".to_string(), "audiāre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiāminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiātur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Present, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audiantur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrer".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrēmur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrēris".to_string(), "audīrēre".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrēminī".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrētur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Imperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::Complete(vec!["audīrentur".to_string()]))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sim"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sīs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sītis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sit"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Perfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "sint"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essem"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēmus"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essēs"))); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essētis"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "esset"))); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::Pluperfect, V::Voice::Passive, V::Mood::Subjunctive), &Some(V::Conjugation::PassivePerfect(&adjective, "essent"))); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::First, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Second, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Singular, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); verify_conjugation(&verb.conjugate(V::Person::Third, V::Number::Plural, V::Tense::FuturePerfect, V::Voice::Passive, V::Mood::Subjunctive), &None); }, Err(error) => panic!("Failed to create the verb {}, {}, {}, {}. Received the following error: {}", present_active_indicative, present_active_infinitive, perfect_active_indicative, perfect_passive_neuter, error), } }, Err(error) => panic!("Failed to create the adjective {}, {}, {}. Received the following error: {}", perfect_passive_masculine, perfect_passive_feminine, perfect_passive_neuter, error), } }