Skip to content

Commit

Permalink
Fix 90000th in Russian
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Feb 18, 2015
1 parent 3d28faf commit b7c7a1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Humanizer.Tests/Localisation/ru-RU/NumberToWordsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ public void ToOrdinalWords(int number, string expected)
[InlineData(4000, "четырёхтысячная")]
[InlineData(5000, "пятитысячная")]
[InlineData(10000, "десятитысячная")]
[InlineData(90000, "девяностотысячная")]
[InlineData(100000, "стотысячная")]
[InlineData(990000, "девятьсот девяностотысячная")]
[InlineData(1000000, "миллионная")]
[InlineData(2000000, "двухмиллионная")]
[InlineData(10000000, "десятимиллионная")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class RussianNumberToWordsConverter : GenderedNumberToWordsConverter
private static readonly string[] TensMap = { "ноль", "десять", "двадцать", "тридцать", "сорок", "пятьдесят", "шестьдесят", "семьдесят", "восемьдесят", "девяносто" };
private static readonly string[] UnitsMap = { "ноль", "один", "два", "три", "четыре", "пять", "шесть", "семь", "восемь", "девять", "десять", "одиннадцать", "двенадцать", "тринадцать", "четырнадцать", "пятнадцать", "шестнадцать", "семнадцать", "восемнадцать", "девятнадцать" };
private static readonly string[] UnitsOrdinalPrefixes = { string.Empty, string.Empty, "двух", "трёх", "четырёх", "пяти", "шести", "семи", "восьми", "девяти", "десяти", "одиннадцати", "двенадцати", "тринадцати", "четырнадцати", "пятнадцати", "шестнадцати", "семнадцати", "восемнадцати", "девятнадцати" };
private static readonly string[] TensOrdinalPrefixes = { string.Empty, "десяти", "двадцати", "тридцати", "сорока", "пятидесяти", "шестидесяти", "семидесяти", "восьмидесяти", "девятидесяти" };
private static readonly string[] TensOrdinalPrefixes = { string.Empty, "десяти", "двадцати", "тридцати", "сорока", "пятидесяти", "шестидесяти", "семидесяти", "восьмидесяти", "девяносто" };
private static readonly string[] TensOrdinal = { string.Empty, "десят", "двадцат", "тридцат", "сороков", "пятидесят", "шестидесят", "семидесят", "восьмидесят", "девяност" };
private static readonly string[] UnitsOrdinal = { string.Empty, "перв", "втор", "трет", "четверт", "пят", "шест", "седьм", "восьм", "девят", "десят", "одиннадцат", "двенадцат", "тринадцат", "четырнадцат", "пятнадцат", "шестнадцат", "семнадцат", "восемнадцат", "девятнадцат" };

Expand Down

0 comments on commit b7c7a1c

Please sign in to comment.