Skip to content

Commit

Permalink
Removed precalculated cases for cardinal number 1000 in Russian\Cardi…
Browse files Browse the repository at this point in the history
…nalNumeralGenerator because it correctly generates by morphos\Russian\NounDeclension::declinateFirstDeclension()
  • Loading branch information
alex-storchak committed Sep 11, 2024
1 parent 55cba44 commit df01b61
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 @@ -163,14 +163,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 @@ -59,6 +59,16 @@ public function numbersProvider()
'тремястами сорока четырьмя',
'трехстах сорока четырех',
],
[
1000,
NumeralGenerator::FEMALE,
'тысяча',
'тысячи',
'тысяче',
'тысячу',
'тысячей',
'тысяче',
],
[
1007,
NumeralGenerator::MALE,
Expand Down

0 comments on commit df01b61

Please sign in to comment.