mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
fix unit tests
This commit is contained in:
parent
3f80c62942
commit
bb62a3c1af
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ def test_relearn():
|
||||||
# immediately graduate it
|
# immediately graduate it
|
||||||
d.sched.answerCard(c, 4)
|
d.sched.answerCard(c, 4)
|
||||||
assert c.queue == c.type == 2
|
assert c.queue == c.type == 2
|
||||||
assert c.ivl == 1
|
assert c.ivl == 2
|
||||||
assert c.due == d.sched.today + c.ivl
|
assert c.due == d.sched.today + c.ivl
|
||||||
|
|
||||||
def test_relearn_no_steps():
|
def test_relearn_no_steps():
|
||||||
|
@ -549,7 +549,7 @@ def test_nextIvl():
|
||||||
c.factor = STARTING_FACTOR
|
c.factor = STARTING_FACTOR
|
||||||
assert ni(c, 1) == 60
|
assert ni(c, 1) == 60
|
||||||
assert ni(c, 3) == 100*86400
|
assert ni(c, 3) == 100*86400
|
||||||
assert ni(c, 4) == 100*86400
|
assert ni(c, 4) == 101*86400
|
||||||
# review cards
|
# review cards
|
||||||
##################################################
|
##################################################
|
||||||
c.queue = 2
|
c.queue = 2
|
||||||
|
|
Loading…
Reference in a new issue