88
99class SwiftSchedulingTest {
1010 @ Test
11- @ DisplayName ("NOW at 9 AM " )
11+ @ DisplayName ("NOW translates to two hours later " )
1212 void testNowAtNineAm () {
1313 LocalDateTime meetingStart = LocalDateTime .parse ("2012-02-13T09:00:00" );
1414 LocalDateTime expected = LocalDateTime .parse ("2012-02-13T11:00:00" );
@@ -20,7 +20,7 @@ void testNowAtNineAm() {
2020
2121 @ Disabled ("Remove to run test" )
2222 @ Test
23- @ DisplayName ("ASAP before 1 PM " )
23+ @ DisplayName ("ASAP before one in the afternoon translates to today at five in the afternoon " )
2424 void testAsapBeforeOnePm () {
2525 LocalDateTime meetingStart = LocalDateTime .parse ("1999-06-03T09:45:00" );
2626 LocalDateTime expected = LocalDateTime .parse ("1999-06-03T17:00:00" );
@@ -32,7 +32,7 @@ void testAsapBeforeOnePm() {
3232
3333 @ Disabled ("Remove to run test" )
3434 @ Test
35- @ DisplayName ("ASAP at 1 PM " )
35+ @ DisplayName ("ASAP at one in the afternoon translates to tomorrow at one in the afternoon " )
3636 void testAsapAtOnePm () {
3737 LocalDateTime meetingStart = LocalDateTime .parse ("2008-12-21T13:00:00" );
3838 LocalDateTime expected = LocalDateTime .parse ("2008-12-22T13:00:00" );
@@ -44,7 +44,7 @@ void testAsapAtOnePm() {
4444
4545 @ Disabled ("Remove to run test" )
4646 @ Test
47- @ DisplayName ("ASAP after 1 PM " )
47+ @ DisplayName ("ASAP after one in the afternoon translates to tomorrow at one in the afternoon " )
4848 void testAsapAfterOnePm () {
4949 LocalDateTime meetingStart = LocalDateTime .parse ("2008-12-21T14:50:00" );
5050 LocalDateTime expected = LocalDateTime .parse ("2008-12-22T13:00:00" );
@@ -56,7 +56,7 @@ void testAsapAfterOnePm() {
5656
5757 @ Disabled ("Remove to run test" )
5858 @ Test
59- @ DisplayName ("EOW on Monday" )
59+ @ DisplayName ("EOW on Monday translates to Friday at five in the afternoon " )
6060 void testEowOnMonday () {
6161 LocalDateTime meetingStart = LocalDateTime .parse ("2025-02-03T16:00:00" );
6262 LocalDateTime expected = LocalDateTime .parse ("2025-02-07T17:00:00" );
@@ -68,7 +68,7 @@ void testEowOnMonday() {
6868
6969 @ Disabled ("Remove to run test" )
7070 @ Test
71- @ DisplayName ("EOW on Tuesday" )
71+ @ DisplayName ("EOW on Tuesday translates to Friday at five in the afternoon " )
7272 void testEowOnTuesday () {
7373 LocalDateTime meetingStart = LocalDateTime .parse ("1997-04-29T10:50:00" );
7474 LocalDateTime expected = LocalDateTime .parse ("1997-05-02T17:00:00" );
@@ -80,7 +80,7 @@ void testEowOnTuesday() {
8080
8181 @ Disabled ("Remove to run test" )
8282 @ Test
83- @ DisplayName ("EOW on Wednesday" )
83+ @ DisplayName ("EOW on Wednesday translates to Friday at five in the afternoon " )
8484 void testEowOnWednesday () {
8585 LocalDateTime meetingStart = LocalDateTime .parse ("2005-09-14T11:00:00" );
8686 LocalDateTime expected = LocalDateTime .parse ("2005-09-16T17:00:00" );
@@ -92,7 +92,7 @@ void testEowOnWednesday() {
9292
9393 @ Disabled ("Remove to run test" )
9494 @ Test
95- @ DisplayName ("EOW on Thursday" )
95+ @ DisplayName ("EOW on Thursday translates to Sunday at eight in the evening " )
9696 void testEowOnThursday () {
9797 LocalDateTime meetingStart = LocalDateTime .parse ("2011-05-19T08:30:00" );
9898 LocalDateTime expected = LocalDateTime .parse ("2011-05-22T20:00:00" );
@@ -104,7 +104,7 @@ void testEowOnThursday() {
104104
105105 @ Disabled ("Remove to run test" )
106106 @ Test
107- @ DisplayName ("EOW on Friday" )
107+ @ DisplayName ("EOW on Friday translates to Sunday at eight in the evening " )
108108 void testEowOnFriday () {
109109 LocalDateTime meetingStart = LocalDateTime .parse ("2022-08-05T14:00:00" );
110110 LocalDateTime expected = LocalDateTime .parse ("2022-08-07T20:00:00" );
@@ -116,7 +116,7 @@ void testEowOnFriday() {
116116
117117 @ Disabled ("Remove to run test" )
118118 @ Test
119- @ DisplayName ("EOW in leap year " )
119+ @ DisplayName ("EOW translates to leap day " )
120120 void testEowDuringLeapYear () {
121121 LocalDateTime meetingStart = LocalDateTime .parse ("2008-02-25T10:30:00" );
122122 LocalDateTime expected = LocalDateTime .parse ("2008-02-29T17:00:00" );
@@ -128,7 +128,9 @@ void testEowDuringLeapYear() {
128128
129129 @ Disabled ("Remove to run test" )
130130 @ Test
131- @ DisplayName ("2M in January" )
131+ @ DisplayName (
132+ "2M before the second month of this year translates to the first workday of the second month of this year"
133+ )
132134 void test2MInJanuary () {
133135 LocalDateTime meetingStart = LocalDateTime .parse ("2007-01-02T14:15:00" );
134136 LocalDateTime expected = LocalDateTime .parse ("2007-02-01T08:00:00" );
@@ -140,7 +142,7 @@ void test2MInJanuary() {
140142
141143 @ Disabled ("Remove to run test" )
142144 @ Test
143- @ DisplayName ("11M in November " )
145+ @ DisplayName ("11M in the eleventh month translates to the first workday of the eleventh month of next year " )
144146 void test11MInNovember () {
145147 LocalDateTime meetingStart = LocalDateTime .parse ("2013-11-21T15:30:00" );
146148 LocalDateTime expected = LocalDateTime .parse ("2014-11-03T08:00:00" );
@@ -152,7 +154,7 @@ void test11MInNovember() {
152154
153155 @ Disabled ("Remove to run test" )
154156 @ Test
155- @ DisplayName ("4M in November " )
157+ @ DisplayName ("4M in the ninth month translates to the first workday of the fourth month of next year " )
156158 void test4MInNovember () {
157159 LocalDateTime meetingStart = LocalDateTime .parse ("2019-11-18T15:15:00" );
158160 LocalDateTime expected = LocalDateTime .parse ("2020-04-01T08:00:00" );
@@ -164,7 +166,7 @@ void test4MInNovember() {
164166
165167 @ Disabled ("Remove to run test" )
166168 @ Test
167- @ DisplayName ("Q1 in Q1 " )
169+ @ DisplayName ("Q1 in the first quarter translates to the last workday of the first quarter of this year " )
168170 void testQ1InQ1 () {
169171 LocalDateTime meetingStart = LocalDateTime .parse ("2003-01-01T10:45:00" );
170172 LocalDateTime expected = LocalDateTime .parse ("2003-03-31T08:00:00" );
@@ -176,7 +178,7 @@ void testQ1InQ1() {
176178
177179 @ Disabled ("Remove to run test" )
178180 @ Test
179- @ DisplayName ("Q4 in Q2 " )
181+ @ DisplayName ("Q4 in the second quarter translates to the last workday of the fourth quarter of this year " )
180182 void testQ4InQ2 () {
181183 LocalDateTime meetingStart = LocalDateTime .parse ("2001-04-09T09:00:00" );
182184 LocalDateTime expected = LocalDateTime .parse ("2001-12-31T08:00:00" );
@@ -188,7 +190,7 @@ void testQ4InQ2() {
188190
189191 @ Disabled ("Remove to run test" )
190192 @ Test
191- @ DisplayName ("Q3 in Q4 " )
193+ @ DisplayName ("Q3 in the fourth quarter translates to the last workday of the third quarter of next year " )
192194 void testQ3InQ4 () {
193195 LocalDateTime meetingStart = LocalDateTime .parse ("2022-10-06T11:00:00" );
194196 LocalDateTime expected = LocalDateTime .parse ("2023-09-29T08:00:00" );
0 commit comments