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

Function test_r

test/date_test/parse.pass.cpp:693–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693void
694test_r()
695{
696 using namespace date;
697 using namespace std::chrono;
698 {
699 std::istringstream in{"2016-12-26 1:36:57 pm"};
700 sys_seconds tp;
701 in >> parse("%F %r", tp);
702 assert(!in.fail());
703 assert(!in.bad());
704 assert(tp == sys_days{2016_y/12/26} + hours{13} + minutes{36} + seconds{57});
705 }
706}
707
708void
709test_R()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected