use of org.liberty.android.fantastischmemo.entity.LearningData in project AnyMemo by helloworld1.
the class DefaultSchedulerTest method testScheduleForReviewardSuccess.
@SmallTest
@Test
public void testScheduleForReviewardSuccess() {
LearningData newLd = defaultScheduler.schedule(forReviewCardLearningData, 5, false);
assertFalse(defaultScheduler.isCardForReview(newLd));
assertFalse(defaultScheduler.isCardNew(newLd));
assertTrue(defaultScheduler.isCardLearned(newLd));
}
use of org.liberty.android.fantastischmemo.entity.LearningData in project AnyMemo by helloworld1.
the class DefaultSchedulerTest method testScheduleFailedCardSuccess.
@SmallTest
@Test
public void testScheduleFailedCardSuccess() {
LearningData newLd = defaultScheduler.schedule(failedCardLearningData, 5, false);
assertFalse(defaultScheduler.isCardForReview(newLd));
assertFalse(defaultScheduler.isCardNew(newLd));
assertTrue(defaultScheduler.isCardLearned(newLd));
}
use of org.liberty.android.fantastischmemo.entity.LearningData in project AnyMemo by helloworld1.
the class DefaultSchedulerTest method testScheduleFailedCardFailure.
@SmallTest
@Test
public void testScheduleFailedCardFailure() {
LearningData newLd = defaultScheduler.schedule(failedCardLearningData, 0, false);
assertTrue(defaultScheduler.isCardForReview(newLd));
assertFalse(defaultScheduler.isCardNew(newLd));
assertFalse(defaultScheduler.isCardLearned(newLd));
}
use of org.liberty.android.fantastischmemo.entity.LearningData in project AnyMemo by helloworld1.
the class DefaultSchedulerTest method testScheduleNewCardSuccess.
@SmallTest
@Test
public void testScheduleNewCardSuccess() {
LearningData ld = new LearningData();
LearningData newLd = defaultScheduler.schedule(ld, 3, false);
assertFalse(defaultScheduler.isCardForReview(newLd));
assertFalse(defaultScheduler.isCardNew(newLd));
assertTrue(defaultScheduler.isCardLearned(newLd));
assertEquals(3, (int) newLd.getGrade());
}
use of org.liberty.android.fantastischmemo.entity.LearningData in project AnyMemo by helloworld1.
the class DefaultSchedulerTest method testScheduleForScheduleCardFailure.
@SmallTest
@Test
public void testScheduleForScheduleCardFailure() {
LearningData newLd = defaultScheduler.schedule(forReviewCardLearningData, 0, false);
assertTrue(defaultScheduler.isCardForReview(newLd));
assertFalse(defaultScheduler.isCardNew(newLd));
assertFalse(defaultScheduler.isCardLearned(newLd));
}
Aggregations