Skip to content

Commit

Permalink
Merge pull request #152 from alex-storchak/fix-cases-for-cardinal-num…
Browse files Browse the repository at this point in the history
…-1000-russian

Removed precalculated cases for cardinal number 1000 in Russian\CardinalNumeralGenerator
  • Loading branch information
wapmorgan authored Sep 26, 2024
2 parents 857ce52 + df01b61 commit d228767
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Russian/CardinalNumeralGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,6 @@ class CardinalNumeralGenerator extends NumeralGenerator implements Cases
self::TVORIT => 'восьмистами',
self::PREDLOJ => 'восьмистах',
],
'тысяча' => [
self::IMENIT => 'тысяча',
self::RODIT => 'тысяч',
self::DAT => 'тысячам',
self::VINIT => 'тысяч',
self::TVORIT => 'тысячей',
self::PREDLOJ => 'тысячах',
],
];

/**
Expand Down
10 changes: 10 additions & 0 deletions tests/Russian/CardinalNumeralTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ public function numbersProvider()
'тремястами сорока четырьмя',
'трехстах сорока четырех',
],
[
1000,
NumeralGenerator::FEMALE,
'тысяча',
'тысячи',
'тысяче',
'тысячу',
'тысячей',
'тысяче',
],
[
1007,
NumeralGenerator::MALE,
Expand Down

0 comments on commit d228767

Please sign in to comment.