.. -> get_si_pron
this almost certainly needs refactoring, but it appears to work correctly.
This commit is contained in:
parent
be78d45cd6
commit
195dc16f3d
2 changed files with 79 additions and 7 deletions
|
|
@ -41,3 +41,13 @@ fn test_bysize() {
|
|||
assert_eq!(sorted_words, vec!["horse"]);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_si_pron() {
|
||||
assert_eq!("him", get_si_pron("acc", "them", "masculine"));
|
||||
assert_eq!("her", get_si_pron("acc", "them", "feminine"));
|
||||
assert_eq!("it", get_si_pron("acc", "them", "neuter"));
|
||||
assert_eq!("themselves", get_si_pron("acc", "itself", "themselves"));
|
||||
assert_ne!("him", get_si_pron("acc", "them", "feminine"));
|
||||
assert_ne!("her", get_si_pron("acc", "them", "masculine"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue