MCPcopy Create free account
hub / github.com/HowardHinnant/date / test_trailing_Z

Function test_trailing_Z

test/date_test/parse.pass.cpp:866–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void
867test_trailing_Z()
868{
869 std::string format = "%FT%TZ";
870 std::string datetime = "2017-2-15T13:13:13";
871 std::istringstream input(datetime);
872 date::sys_seconds tp;
873 input >> date::parse(format, tp);
874 assert(input.fail());
875 assert(input.eof());
876}
877
878void
879test_leading_ws()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected