mirror of
https://github.com/ankitects/anki.git
synced 2026-01-11 13:03:55 -05:00
Add unit test for "Interleaved Decks".
This commit is contained in:
parent
54226104c4
commit
e76722c09c
1 changed files with 13 additions and 0 deletions
|
|
@ -399,6 +399,19 @@ mod test {
|
||||||
];
|
];
|
||||||
assert_eq!(col.queue_as_deck_and_template(parent.id), cards);
|
assert_eq!(col.queue_as_deck_and_template(parent.id), cards);
|
||||||
|
|
||||||
|
col.set_deck_gather_order(&mut parent, NewCardGatherPriority::InterleavedDecks);
|
||||||
|
let cards = vec![
|
||||||
|
(parent.id, 0),
|
||||||
|
(child.id, 0),
|
||||||
|
(grandchild.id, 0),
|
||||||
|
(child_2.id, 0),
|
||||||
|
(parent.id, 1),
|
||||||
|
(child.id, 1),
|
||||||
|
(grandchild.id, 1),
|
||||||
|
(child_2.id, 1),
|
||||||
|
];
|
||||||
|
assert_eq!(col.queue_as_deck_and_template(parent.id), cards);
|
||||||
|
|
||||||
// insertion order
|
// insertion order
|
||||||
col.set_deck_gather_order(&mut parent, NewCardGatherPriority::LowestPosition);
|
col.set_deck_gather_order(&mut parent, NewCardGatherPriority::LowestPosition);
|
||||||
let cards = vec![
|
let cards = vec![
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue