Skip to content

Commit

Permalink
Extended date comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
adoble committed Oct 25, 2024
1 parent d76663b commit d9411fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/doble/adr/CommandGenerateTocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void testWithNoDateFormatter() throws Exception {

String actual = Files.readString(tocPath);

DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd MMM yyyy", Locale.ENGLISH);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("[dd MMM yyyy]" + "[MMM dd, yyyy]", Locale.ENGLISH);
// Will parse if the date is in the default format otherwise will fail
try {
LocalDate.parse(actual, formatter);
Expand Down

0 comments on commit d9411fd

Please sign in to comment.