Skip to content

Commit

Permalink
Adjust filtered deck tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Jan 6, 2024
1 parent ea45545 commit ae5155d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class CustomStudyDialogTest : RobolectricTest() {
"\"dyn\":1," +
"\"lrnToday\":[0,0]," +
"\"newToday\":[0,0]," +
"\"previewDelay\":10," +
"\"previewDelay\":0," +
"\"previewAgainSecs\":60,\"previewHardSecs\":600,\"previewGoodSecs\":0," +
"\"resched\":true," +
"\"revToday\":[0,0]," +
"\"separate\":true," +
Expand Down
4 changes: 2 additions & 2 deletions AnkiDroid/src/test/java/com/ichi2/libanki/SchedulerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ open class SchedulerTest : JvmTest() {
col.sched.rebuildDyn(did)
// grab the first card
c = col.sched.card!!
Assert.assertEquals(600, col.sched.nextIvl(c, BUTTON_ONE))
Assert.assertEquals(900, col.sched.nextIvl(c, BUTTON_TWO))
Assert.assertEquals(60, col.sched.nextIvl(c, BUTTON_ONE))
Assert.assertEquals(600, col.sched.nextIvl(c, BUTTON_TWO))
// failing it will push its due time back
val due = c.due
col.sched.answerCard(c, BUTTON_ONE)
Expand Down

0 comments on commit ae5155d

Please sign in to comment.