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

Function test_F

test/date_test/parse.pass.cpp:419–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419void
420test_F()
421{
422 using namespace date;
423 using namespace std::chrono;
424 using date::year_month_day;
425 {
426 std::istringstream in{"2016-12-13"};
427 sys_days tp;
428 in >> parse("%F", tp);
429 assert(!in.fail());
430 assert(!in.bad());
431 assert(tp == 2016_y/12/13);
432 }
433 {
434 std::istringstream in{"2016-12-13"};
435 year_month_day tp{};
436 in >> parse("%F", tp);
437 assert(!in.fail());
438 assert(!in.bad());
439 assert(tp == 2016_y/12/13);
440 }
441}
442
443void
444test_H()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected