mirror of
https://github.com/YGGverse/plurify.git
synced 2026-03-31 17:15:36 +00:00
initial commit
This commit is contained in:
parent
4ccf763a0e
commit
4f016e2ae0
6 changed files with 114 additions and 1 deletions
15
tests/integration.rs
Normal file
15
tests/integration.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use plurify::ns;
|
||||
|
||||
#[test]
|
||||
fn _ns() {
|
||||
let en = &["cat", "cats", "cats"];
|
||||
let uk = &["кіт", "кота", "котів"];
|
||||
|
||||
assert_eq!(ns(1, en), "cat");
|
||||
assert_eq!(ns(2, en), "cats");
|
||||
assert_eq!(ns(5, en), "cats");
|
||||
|
||||
assert_eq!(ns(1, uk), "кіт");
|
||||
assert_eq!(ns(2, uk), "кота");
|
||||
assert_eq!(ns(5, uk), "котів");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue