| 417 | } |
| 418 | |
| 419 | void |
| 420 | test_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 | |
| 443 | void |
| 444 | test_H() |