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

Function test_j

test/date_test/parse.pass.cpp:501–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void
502test_j()
503{
504 using namespace date;
505 using namespace std::chrono;
506 {
507 std::istringstream in{"2016 361"};
508 sys_days tp;
509 in >> parse("%Y %j", tp);
510 assert(!in.fail());
511 assert(!in.bad());
512 assert(tp == sys_days{2016_y/12/26});
513 }
514}
515
516void
517test_m()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected