From df01b615ca303bd64fbb594e7560940b4d6a3029 Mon Sep 17 00:00:00 2001 From: Alexander Storchak Date: Wed, 11 Sep 2024 12:18:08 +0300 Subject: [PATCH] Removed precalculated cases for cardinal number 1000 in Russian\CardinalNumeralGenerator because it correctly generates by morphos\Russian\NounDeclension::declinateFirstDeclension() --- src/Russian/CardinalNumeralGenerator.php | 8 -------- tests/Russian/CardinalNumeralTest.php | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Russian/CardinalNumeralGenerator.php b/src/Russian/CardinalNumeralGenerator.php index 0ac2233..1fc8fd4 100644 --- a/src/Russian/CardinalNumeralGenerator.php +++ b/src/Russian/CardinalNumeralGenerator.php @@ -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 => 'тысячах', - ], ]; /** diff --git a/tests/Russian/CardinalNumeralTest.php b/tests/Russian/CardinalNumeralTest.php index f226239..f6192f8 100644 --- a/tests/Russian/CardinalNumeralTest.php +++ b/tests/Russian/CardinalNumeralTest.php @@ -59,6 +59,16 @@ public function numbersProvider() 'тремястами сорока четырьмя', 'трехстах сорока четырех', ], + [ + 1000, + NumeralGenerator::FEMALE, + 'тысяча', + 'тысячи', + 'тысяче', + 'тысячу', + 'тысячей', + 'тысяче', + ], [ 1007, NumeralGenerator::MALE,