mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-10 02:58:51 -06:00
Update checkmark widget for numerical support
Co-authored-by: Alinson S. Xavier <git@axavier.org>
This commit is contained in:
@@ -102,19 +102,19 @@ public class HabitTest extends BaseUnitTest
|
||||
h.setTargetValue(100.0);
|
||||
assertFalse(h.isCompletedToday());
|
||||
|
||||
h.getRepetitions().toggle(getToday(), 200);
|
||||
h.getRepetitions().toggle(getToday(), 200_000);
|
||||
assertTrue(h.isCompletedToday());
|
||||
h.getRepetitions().toggle(getToday(), 100);
|
||||
h.getRepetitions().toggle(getToday(), 100_000);
|
||||
assertTrue(h.isCompletedToday());
|
||||
h.getRepetitions().toggle(getToday(), 50);
|
||||
h.getRepetitions().toggle(getToday(), 50_000);
|
||||
assertFalse(h.isCompletedToday());
|
||||
|
||||
h.setTargetType(Habit.AT_MOST);
|
||||
h.getRepetitions().toggle(getToday(), 200);
|
||||
h.getRepetitions().toggle(getToday(), 200_000);
|
||||
assertFalse(h.isCompletedToday());
|
||||
h.getRepetitions().toggle(getToday(), 100);
|
||||
h.getRepetitions().toggle(getToday(), 100_000);
|
||||
assertTrue(h.isCompletedToday());
|
||||
h.getRepetitions().toggle(getToday(), 50);
|
||||
h.getRepetitions().toggle(getToday(), 50_000);
|
||||
assertTrue(h.isCompletedToday());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user