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

Function test_x

test/date_test/parse.pass.cpp:216–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void
217test_x()
218{
219 using namespace date;
220 using namespace std::chrono;
221 {
222 // correct abbreviation
223 std::istringstream in{"12/11/16"};
224 sys_seconds tp;
225 in >> parse("%x", tp);
226 assert(!in.fail());
227 assert(!in.bad());
228 assert(tp == sys_days{2016_y/12/11});
229 }
230}
231
232void
233test_X()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected