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

Function test_W

test/date_test/parse.pass.cpp:738–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738void
739test_W()
740{
741 using namespace date;
742 using namespace std::chrono;
743 {
744 std::istringstream in{"2016-52-1"};
745 sys_days tp;
746 in >> parse("%Y-%W-%w", tp);
747 assert(!in.fail());
748 assert(!in.bad());
749 assert(tp == sys_days{2016_y/12/26});
750 }
751}
752
753void
754test_GV()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected