Skip to content

Commit

Permalink
HHH-14256 - Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Hammett authored and jrenaat committed Jan 9, 2025
1 parent ebd7a9e commit 2329188
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ public static List<Object[]> data() {
.add( 1904, 12, 31, 23, 0, 0, 0, ZONE_PARIS )
.add( 1905, 1, 1, 0, 0, 0, 0, ZONE_PARIS )
.add( 1905, 1, 1, 1, 0, 0, 0, ZONE_PARIS )
// => HHH-14256: Instants with negative years
.add(-1, 1, 1, 0, 0, 0, 0, ZoneId.of("UTC"))
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public static List<Object[]> data() {
.add( 2018, 3, 25, ZONE_PARIS )
.add( 2018, 9, 30, ZONE_AUCKLAND )
.add( 2018, 8, 12, ZONE_SANTIAGO ) // DST start: 00:00 => 01:00
// => HHH-14256: Dates with negative years
.add(-1, 1, 1, ZONE_PARIS)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public static List<Object[]> data() {
// This does not work, but it's unrelated to HHH-13379; see HHH-13515
//.add( 2018, 9, 30, 2, 0, 0, 0, ZONE_AUCKLAND )
.add( 2018, 9, 30, 3, 0, 0, 0, ZONE_AUCKLAND )
// => HHH-14256: Dates with negative years
.add( -1, 1, 1, 0, 0, 0, 0, ZONE_PARIS )
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ public static List<Object[]> data() {
.add( 1905, 1, 1, 0, 0, 0, 0, "-01:00", ZONE_PARIS )
.add( 1905, 1, 1, 0, 0, 0, 0, "+00:00", ZONE_PARIS )
.add( 1905, 1, 1, 0, 0, 0, 0, "+01:00", ZONE_PARIS )
// => HHH-14256: Dates with negative years
.add(-1, 1, 1, 0, 0, 0, 0, "+00:00", ZONE_PARIS)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ public static List<Object[]> data() {
.add( 1905, 1, 1, 0, 0, 0, 0, "-01:00", ZONE_PARIS )
.add( 1905, 1, 1, 0, 0, 0, 0, "+00:00", ZONE_PARIS )
.add( 1905, 1, 1, 0, 0, 0, 0, "+01:00", ZONE_PARIS )
// => HHH-14256: Dates with negative years
.add(-1, 1, 1, 0, 0, 0, 0, "+00:00", ZONE_PARIS)
.build();
}

Expand Down

0 comments on commit 2329188

Please sign in to comment.