Skip to content

Commit

Permalink
added missing arabic test file to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiK committed Feb 4, 2014
1 parent 8bc60f4 commit 5141982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Humanizer.Tests/Humanizer.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<ItemGroup>
<Compile Include="CasingTests.cs" />
<Compile Include="Localisation\ar\DateHumanizeTests.cs" />
<Compile Include="Localisation\ar\NumberToWordsTests.cs" />
<Compile Include="Localisation\ar\TimeSpanHumanizeTests.cs" />
<Compile Include="Localisation\DateHumanizeTests.nb-NO.cs" />
<Compile Include="Localisation\es\DateHumanizeTests.cs" />
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/NumberToWordsExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ public static string ToWords(this int number)
{
case "ar":
return ToArabicWords(number);
case "en":
return ToEnglishWords(number);
default:
throw new Exception();
return ToEnglishWords(number);
}
}

Expand Down

0 comments on commit 5141982

Please sign in to comment.