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

Function test_U

test/date_test/parse.pass.cpp:723–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void
724test_U()
725{
726 using namespace date;
727 using namespace std::chrono;
728 {
729 std::istringstream in{"2016-52-1"};
730 sys_days tp;
731 in >> parse("%Y-%U-%w", tp);
732 assert(!in.fail());
733 assert(!in.bad());
734 assert(tp == sys_days{2016_y/12/26});
735 }
736}
737
738void
739test_W()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected