mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 12:18:59 +00:00
Updated test to mod 7 for the days of the week
This commit is contained in:
parent
796a9a7613
commit
e0632ee6e2
1 changed files with 8 additions and 2 deletions
|
|
@ -316,7 +316,10 @@ public class TaskAlarmManagerTest {
|
|||
|
||||
Assert.assertNotNull(alarmId);
|
||||
Assert.assertEquals(true, alarmUp);
|
||||
Assert.assertEquals(currentDayOfTheWeek + everyXDay, newReminderTime.get(Calendar.DAY_OF_WEEK));
|
||||
|
||||
int expectedDay = (currentDayOfTheWeek + everyXDay) % 7;
|
||||
|
||||
Assert.assertEquals(expectedDay, newReminderTime.get(Calendar.DAY_OF_WEEK));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -358,6 +361,9 @@ public class TaskAlarmManagerTest {
|
|||
|
||||
Assert.assertNotNull(alarmId);
|
||||
Assert.assertEquals(true, alarmUp);
|
||||
Assert.assertEquals(currentDayOfTheWeek + everyXDay, newReminderTime.get(Calendar.DAY_OF_WEEK));
|
||||
|
||||
int expectedDay = (currentDayOfTheWeek + everyXDay) % 7;
|
||||
|
||||
Assert.assertEquals(expectedDay, newReminderTime.get(Calendar.DAY_OF_WEEK));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue