mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 01:28:52 -06:00
Add missing tests for RepetitionList and Habit
This commit is contained in:
@@ -108,7 +108,7 @@ public class HabitBullCSVImporter extends AbstractImporter
|
||||
}
|
||||
|
||||
if(!h.getRepetitions().containsTimestamp(timestamp))
|
||||
h.getRepetitions().toggleTimestamp(timestamp);
|
||||
h.getRepetitions().toggle(timestamp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public class RewireDBImporter extends AbstractImporter
|
||||
GregorianCalendar cal = DateUtils.getStartOfTodayCalendar();
|
||||
cal.set(year, month - 1, day);
|
||||
|
||||
habit.getRepetitions().toggleTimestamp(cal.getTimeInMillis());
|
||||
habit.getRepetitions().toggle(cal.getTimeInMillis());
|
||||
} while (c.moveToNext());
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -100,7 +100,7 @@ public class TickmateDBImporter extends AbstractImporter
|
||||
GregorianCalendar cal = DateUtils.getStartOfTodayCalendar();
|
||||
cal.set(year, month, day);
|
||||
|
||||
habit.getRepetitions().toggleTimestamp(cal.getTimeInMillis());
|
||||
habit.getRepetitions().toggle(cal.getTimeInMillis());
|
||||
} while (c.moveToNext());
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user