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

Function test_X

test/date_test/parse.pass.cpp:232–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void
233test_X()
234{
235 using namespace date;
236 using namespace std::chrono;
237 {
238 // correct abbreviation
239 std::istringstream in{"2016-12-11 14:02:43"};
240 sys_seconds tp;
241 in >> parse("%F %X", tp);
242 assert(!in.fail());
243 assert(!in.bad());
244 assert(tp == sys_days{2016_y/12/11} + hours{14} + minutes{2} + seconds{43});
245 }
246}
247
248void
249test_C()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected