|
14 | 14 |
|
15 | 15 | using namespace boost::posix_time;
|
16 | 16 |
|
17 |
| -TEST_CASE("test_1") |
18 |
| -{ |
19 |
| - const ptime actual = gigasecond::advance(time_from_string("2011-04-25 00:00:00")); |
| 17 | +TEST_CASE("date only specification of time", |
| 18 | + "[92fbe71c-ea52-4fac-bd77-be38023cacf7]") { |
| 19 | + const ptime actual = |
| 20 | + gigasecond::advance(time_from_string("2011-04-25 00:00:00")); |
20 | 21 |
|
21 | 22 | const ptime expected(time_from_string("2043-01-01 01:46:40"));
|
22 | 23 | REQUIRE(expected == actual);
|
23 | 24 | }
|
24 | 25 |
|
25 | 26 | #if defined(EXERCISM_RUN_ALL_TESTS)
|
26 |
| -TEST_CASE("test_2") |
27 |
| -{ |
28 |
| - const auto actual = gigasecond::advance(time_from_string("1977-06-13 00:00:00")); |
| 27 | +TEST_CASE("second test for date only specification of time", |
| 28 | + "[6d86dd16-6f7a-47be-9e58-bb9fb2ae1433]") { |
| 29 | + const auto actual = |
| 30 | + gigasecond::advance(time_from_string("1977-06-13 00:00:00")); |
29 | 31 |
|
30 | 32 | const ptime expected(time_from_string("2009-02-19 01:46:40"));
|
31 | 33 | REQUIRE(expected == actual);
|
32 | 34 | }
|
33 | 35 |
|
34 |
| -TEST_CASE("test_3") |
35 |
| -{ |
36 |
| - const auto actual = gigasecond::advance(time_from_string("1959-07-19 00:00:00")); |
| 36 | +TEST_CASE("third test for date only specification of time", |
| 37 | + "[77eb8502-2bca-4d92-89d9-7b39ace28dd5]") { |
| 38 | + const auto actual = |
| 39 | + gigasecond::advance(time_from_string("1959-07-19 00:00:00")); |
37 | 40 |
|
38 | 41 | const ptime expected(time_from_string("1991-03-27 01:46:40"));
|
39 | 42 | REQUIRE(expected == actual);
|
40 | 43 | }
|
41 | 44 |
|
42 |
| -TEST_CASE("test_4") |
43 |
| -{ |
44 |
| - const auto actual = gigasecond::advance(time_from_string("2015-01-24 22:00:00")); |
| 45 | +TEST_CASE("full time specified", "[c9d89a7d-06f8-4e28-a305-64f1b2abc693]") { |
| 46 | + const auto actual = |
| 47 | + gigasecond::advance(time_from_string("2015-01-24 22:00:00")); |
45 | 48 |
|
46 | 49 | const ptime expected(time_from_string("2046-10-02 23:46:40"));
|
47 | 50 | REQUIRE(expected == actual);
|
48 | 51 | }
|
49 | 52 |
|
50 |
| -TEST_CASE("test_5") |
51 |
| -{ |
52 |
| - const auto actual = gigasecond::advance(time_from_string("2015-01-24 23:59:59")); |
| 53 | +TEST_CASE("full time with day roll-over", |
| 54 | + "[09d4e30e-728a-4b52-9005-be44a58d9eba]") { |
| 55 | + const auto actual = |
| 56 | + gigasecond::advance(time_from_string("2015-01-24 23:59:59")); |
53 | 57 |
|
54 | 58 | const ptime expected(time_from_string("2046-10-03 01:46:39"));
|
55 | 59 | REQUIRE(expected == actual);
|
|
0 commit comments