-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Greek for the method ToOrdinalWords() (from 1 to 199) and tests for it.
- Loading branch information
1 parent
7f17d6e
commit ce0a3bf
Showing
2 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
src/Humanizer.Tests/Localisation/el/NumberToOrdinalWordsTests.cs
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Xunit; | ||
|
||
namespace Humanizer.Tests.Localisation.el | ||
{ | ||
|
||
[UseCulture("el")] | ||
public class NumberToOrdinalWordsTests | ||
{ | ||
[InlineData(-1, "")] | ||
[InlineData(0, "")] | ||
[InlineData(1, "πρώτος")] | ||
[InlineData(10, "δέκατος")] | ||
[InlineData(11, "ενδέκατος")] | ||
[InlineData(12, "δωδέκατος")] | ||
[InlineData(20, "εικοστός")] | ||
[InlineData(31, "τριακοστός πρώτος")] | ||
[InlineData(100, "εκατοστός")] | ||
[InlineData(105, "εκατοστός πέμπτος")] | ||
[InlineData(286, "διακοσιοστός ογδοηκοστός έκτος")] | ||
[InlineData(530, "πεντακοσιοστός τριακοστός")] | ||
[InlineData(912, "εννιακοσιοστός δωδέκατος")] | ||
[InlineData(1203, "χιλιοστός διακοσιοστός τρίτος")] | ||
[InlineData(1596, "χιλιοστός πεντακοσιοστός ενενηκοστός έκτος")] | ||
[InlineData(1061, "χιλιοστός εξηκοστός πρώτος")] | ||
[InlineData(1008, "χιλιοστός όγδοος")] | ||
[InlineData(1211, "χιλιοστός διακοσιοστός ενδέκατος")] | ||
[InlineData(1999, "χιλιοστός εννιακοσιοστός ενενηκοστός ένατος")] | ||
[InlineData(2000, "")] | ||
|
||
[Theory] | ||
public void ToOrdinalWordsInt(int number, string expected) | ||
{ | ||
Assert.Equal(expected, number.ToOrdinalWords()); | ||
} | ||
} | ||
} |
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