Add unit test for "Interleaved Decks".

This commit is contained in:
David Grundberg 2026-01-09 20:42:56 +01:00
parent 54226104c4
commit e76722c09c

View file

@ -399,6 +399,19 @@ mod test {
];
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
col.set_deck_gather_order(&mut parent, NewCardGatherPriority::LowestPosition);
let cards = vec![