Skip to content

Commit

Permalink
Apparently I'm stupid and 7 days actually get humanized as 1 week.
Browse files Browse the repository at this point in the history
  • Loading branch information
hangy committed Dec 1, 2016
1 parent 152a119 commit 2e5dfe5
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ public class TimeSpanHumanizeTests
[Theory]
[InlineData(1, "1 dan")]
[InlineData(2, "2 dana")]
[InlineData(40, "40 dana")]
[InlineData(41, "42 dana")]
[InlineData(42, "42 dana")]
[InlineData(3, "3 dana")]
[InlineData(4, "4 dana")]
[InlineData(5, "5 dana")]
[InlineData(7, "1 tjedan")]
[InlineData(14, "2 tjedana")]
public void Days(int days, string expected)
{
Assert.Equal(expected, TimeSpan.FromDays(days).Humanize());
Expand Down

0 comments on commit 2e5dfe5

Please sign in to comment.