8000 Adding test for Gregorian Calendar beginning day (#898) · Thkru/google-http-java-client@ee2c27e · GitHub
[go: up one dir, main page]

Skip to content

Commit ee2c27e

Browse files
suztomocodyoss
authored andcommitted
Adding test for Gregorian Calendar beginning day (googleapis#898)
1 parent 60aaea9 commit ee2c27e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

google-http-client/src/test/java/com/google/api/client/util/DateTimeTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ public void testParseRfc3339() {
148148
DateTime.parseRfc3339(
149149
"2018-12-31T23:59:59.9999Z"), // This value would be truncated prior to version 1.30.2
150150
DateTime.parseRfc3339("2018-12-31T23:59:59.999Z"));
151+
152+
// The beginning of Gregorian Calendar
153+
assertEquals(
154+
-12219287774877L, // Result from Joda time's Instant.parse
155+
DateTime.parseRfc3339("1582-10-15T01:23:45.123Z").getValue());
151156
}
152157

153158
/**

0 commit comments

Comments
 (0)
0