Skip to content

Commit

Permalink
fix(tests): fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Feb 28, 2023
1 parent d02f6dc commit 3fdf436
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -97,8 +97,8 @@ public void testCalculatePreciceDurationMillenia() throws Exception
{
PrettyTime t = new PrettyTime(LocalDate.of(2000, 2, 2));
List<Duration> durations = t.calculatePreciseDuration(LocalDate.of(100, 1, 1));
Assert.assertEquals("1 millennium 9 centuries 1 month 1 day 8 hours 34 minutes ago", t.format(durations));
Assert.assertEquals("1 millennium 9 centuries 1 month 1 day 8 hours 34 minutes", t.formatDuration(durations));
Assert.assertEquals("1 millennium 9 centuries 1 month 1 day 9 hours 19 minutes ago", t.format(durations));
Assert.assertEquals("1 millennium 9 centuries 1 month 1 day 9 hours 19 minutes", t.formatDuration(durations));
}

@Test
Expand Down

0 comments on commit 3fdf436

Please sign in to comment.