modify a test unit

This commit is contained in:
hlq07 2018-05-12 01:04:17 +08:00
parent 07e210ffeb
commit 6ce934e767
1 changed files with 2 additions and 2 deletions

View File

@ -116,13 +116,13 @@ public class CalendarUtilTest {
Calendar cal = CalendarUtil.constructCalendar(s4);
assertNotNull(cal);
int[] res = CalendarUtil.splitCalendar(cal);
int[] exp = new int[]{2018, 4, 2, 11, 30, 0, 0};
int[] exp = new int[]{2018, 5, 2, 11, 30, 0, 0};
assertArrayEquals(exp, res);
cal = CalendarUtil.constructCalendar(s1, s2);
assertNotNull(cal);
res = CalendarUtil.splitCalendar(cal);
exp = new int[]{2018, 4, 2, 11, 30, 0, 0};
exp = new int[]{2018, 5, 2, 11, 30, 0, 0};
assertArrayEquals(exp, res);
cal = CalendarUtil.constructCalendar(s3 + '/' + s2);