| 214 | } |
| 215 | |
| 216 | void |
| 217 | test_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 | |
| 232 | void |
| 233 | test_X() |