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

Function test_R

test/date_test/parse.pass.cpp:708–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void
709test_R()
710{
711 using namespace date;
712 using namespace std::chrono;
713 {
714 std::istringstream in{"2016-12-26 13:36"};
715 sys_seconds tp;
716 in >> parse("%F %R", tp);
717 assert(!in.fail());
718 assert(!in.bad());
719 assert(tp == sys_days{2016_y/12/26} + hours{13} + minutes{36});
720 }
721}
722
723void
724test_U()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected