Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавлены короткие псевдонимы функции выбора предлога
- Loading branch information
as
committed
Mar 3, 2010
1 parent
530dbc1
commit d6427b1
Showing
2 changed files
with
126 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#!perl -T | ||
|
||
use utf8; | ||
use Test::More 'no_plan'; | ||
use Test::More 'tests' => 10; | ||
|
||
use Lingua::RU::Inflect qw/so ob/; | ||
use Lingua::RU::Inflect qw/:short/; | ||
|
||
ok( ob('ели') eq 'о', 'ob: iotified vowel' ); | ||
ok( so('осой') eq 'с', 'so: vowel' ); | ||
ok( izo('всех') eq 'изо', 'izo: exception' ); | ||
ok( nado('мной') eq 'надо', 'nado: exception' ); | ||
ok( ko('мне') eq 'ко', 'ko: exception' ); | ||
ok( ob('ухе') eq 'об', 'ob: vowel' ); | ||
ok( oto('всех') eq 'ото', 'oto: exception' ); | ||
ok( predo('мной') eq 'предо', 'predo: exception' ); | ||
ok( peredo('мной') eq 'передо', 'peredo: exception' ); | ||
ok( podo('мной') eq 'подо', 'podo: exception' ); | ||
ok( so('сном') eq 'со', 'so: s with consonant' ); | ||
ok( vo('фраке') eq 'во', 'vo: f with consonant' ); |