Unverified Commit abb4fb00 authored by Paul Yang's avatar Paul Yang Committed by GitHub

Change offset of Timestamp conformance test to distinguish from the default (#6263)

Fixes #4079
parent 997bd354
...@@ -1980,12 +1980,12 @@ void BinaryAndJsonConformanceSuite::RunSuiteImpl() { ...@@ -1980,12 +1980,12 @@ void BinaryAndJsonConformanceSuite::RunSuiteImpl() {
"repeated_timestamp: {seconds: 253402300799 nanos: 999999999}"); "repeated_timestamp: {seconds: 253402300799 nanos: 999999999}");
RunValidJsonTest( RunValidJsonTest(
"TimestampWithPositiveOffset", REQUIRED, "TimestampWithPositiveOffset", REQUIRED,
R"({"optionalTimestamp": "1970-01-01T08:00:00+08:00"})", R"({"optionalTimestamp": "1970-01-01T08:00:01+08:00"})",
"optional_timestamp: {seconds: 0}"); "optional_timestamp: {seconds: 1}");
RunValidJsonTest( RunValidJsonTest(
"TimestampWithNegativeOffset", REQUIRED, "TimestampWithNegativeOffset", REQUIRED,
R"({"optionalTimestamp": "1969-12-31T16:00:00-08:00"})", R"({"optionalTimestamp": "1969-12-31T16:00:01-08:00"})",
"optional_timestamp: {seconds: 0}"); "optional_timestamp: {seconds: 1}");
RunValidJsonTest( RunValidJsonTest(
"TimestampNull", REQUIRED, "TimestampNull", REQUIRED,
R"({"optionalTimestamp": null})", R"({"optionalTimestamp": null})",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment