Skip to content

Commit

Permalink
add log to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Balcan committed Dec 11, 2024
1 parent 5862d45 commit 8bd438c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/test/java/org/dhis2/utils/DateUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

import android.util.Log;

import org.dhis2.R;
import org.dhis2.bindings.StringExtensionsKt;
import org.dhis2.commons.date.DateUtils;
Expand Down Expand Up @@ -80,6 +82,8 @@ public void expiryPeriodAndDaysInRange() throws ParseException {
assertEquals("2018-07-26", DateUtils.oldUiDateFormat().format(minDateWeeklyThursday));
assertEquals("2018-07-28", DateUtils.oldUiDateFormat().format(minDateWeeklySaturday));
assertEquals("2018-07-29", DateUtils.oldUiDateFormat().format(minDateWeeklySunday));
Log.d("CHECK", "minDateBiWeekly: " + DateUtils.oldUiDateFormat().format(minDateBiWeekly));
Log.d("CHECK", "expected: 2018-07-16");
assertEquals("2018-07-16", DateUtils.oldUiDateFormat().format(minDateBiWeekly));
assertEquals("2018-06-18", DateUtils.oldUiDateFormat().format(minDateBiWeekly2));
assertEquals("2018-07-01", DateUtils.oldUiDateFormat().format(minDateMonthly));
Expand Down

0 comments on commit 8bd438c

Please sign in to comment.