mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
add test
This commit is contained in:
parent
c694628154
commit
d088fd1f7d
@ -954,6 +954,15 @@ public class DateUtilTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void issueI9CYHITest() {
|
||||
final long betweenDay = DateUtil.betweenDay(
|
||||
DateUtil.parse("2024-03-01"),
|
||||
DateUtil.parse("2024-03-31"), true);
|
||||
|
||||
Assert.assertEquals(30, betweenDay);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void dayOfYearTest() {
|
||||
final int dayOfYear = DateUtil.dayOfYear(DateUtil.parse("2020-01-01"));
|
||||
|
Loading…
Reference in New Issue
Block a user