Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Itelman committed Dec 2, 2015
1 parent 446c37a commit 6c9ab7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public void testCalculatePreciceDurationMillenia() throws Exception
{
PrettyTime t = new PrettyTime(new Date(2014, 8, 15, 0, 0));
List<Duration> durations = t.calculatePreciseDuration(new Date(0));
Assert.assertEquals("לפני 1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 13 שעות 5 דקות",
Assert.assertEquals("לפני 1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 20 שעות 5 דקות",
t.format(durations));
Assert.assertEquals("1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 13 שעות 5 דקות",
Assert.assertEquals("1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 20 שעות 5 דקות",
t.formatDuration(durations));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public void testCalculatePreciceDurationMillenia() throws Exception
{
PrettyTime t = new PrettyTime(new Date(2014, 8, 15, 0, 0));
List<Duration> durations = t.calculatePreciseDuration(new Date(0));
Assert.assertEquals("לפני 1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 13 שעות 5 דקות",
Assert.assertEquals("לפני 1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 20 שעות 5 דקות",
t.format(durations));
Assert.assertEquals("1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 13 שעות 5 דקות",
Assert.assertEquals("1 מילניום 9 מאות 4 עשורים 4 שנים 8 חודשים 1 שבוע 6 ימים 20 שעות 5 דקות",
t.formatDuration(durations));
}

Expand Down
4 changes: 2 additions & 2 deletions core/src/test/java/org/ocpsoft/prettytime/PrettyTimeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public void testCalculatePreciceDurationMillenia() throws Exception
{
PrettyTime t = new PrettyTime(new Date(2014, 8, 15, 0, 0));
List<Duration> durations = t.calculatePreciseDuration(new Date(0));
Assert.assertEquals("1 millennium 9 centuries 4 decades 4 years 8 months 1 week 6 days 13 hours 5 minutes ago",
Assert.assertEquals("1 millennium 9 centuries 4 decades 4 years 8 months 1 week 6 days 20 hours 5 minutes ago",
t.format(durations));
Assert.assertEquals("1 millennium 9 centuries 4 decades 4 years 8 months 1 week 6 days 13 hours 5 minutes",
Assert.assertEquals("1 millennium 9 centuries 4 decades 4 years 8 months 1 week 6 days 20 hours 5 minutes",
t.formatDuration(durations));
}

Expand Down

0 comments on commit 6c9ab7a

Please sign in to comment.