use of android.support.test.filters.SmallTest 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 android.support.test.filters.SmallTest 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 android.support.test.filters.SmallTest 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 android.support.test.filters.SmallTest 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));
}
use of android.support.test.filters.SmallTest in project AnyMemo by helloworld1.
the class DefaultSchedulerTest method testScheduleNewCardFailure.
@SmallTest
@Test
public void testScheduleNewCardFailure() {
LearningData newLd = defaultScheduler.schedule(newCardLearningData, 0, false);
assertTrue(defaultScheduler.isCardForReview(newLd));
assertFalse(defaultScheduler.isCardNew(newLd));
assertFalse(defaultScheduler.isCardLearned(newLd));
assertEquals(0, (int) newLd.getGrade());
}
Aggregations