From 3fdf4368ed103f2f362e54a07384b2545dc1359d Mon Sep 17 00:00:00 2001 From: "Lincoln Baxter, III" Date: Tue, 28 Feb 2023 17:07:29 -0500 Subject: [PATCH] fix(tests): fix failing test --- core/src/test/java/org/ocpsoft/prettytime/PrettyTimeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/ocpsoft/prettytime/PrettyTimeTest.java b/core/src/test/java/org/ocpsoft/prettytime/PrettyTimeTest.java index c9747ee..b9cdbc2 100644 --- a/core/src/test/java/org/ocpsoft/prettytime/PrettyTimeTest.java +++ b/core/src/test/java/org/ocpsoft/prettytime/PrettyTimeTest.java @@ -97,8 +97,8 @@ public void testCalculatePreciceDurationMillenia() throws Exception { PrettyTime t = new PrettyTime(LocalDate.of(2000, 2, 2)); List 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