Files
systemic-game-design-course/course/01-handles/expansion/tests/rust/test_01x.rs
T
2026-10-29 00:17:31 +01:00

16 lines
492 B
Rust

// Module 1 Expansion Drop: playing a card from hand. Matches expansion/README.md.
use engine::harness::*;
#[test]
fn test_01x_play_assigns_order_on_entry() {
let mut g = new_game(GameOpts::default());
let h = g.add_to_hand("Test Filler", 0);
let s = g.summon("Test Filler", 0);
g.play(h);
assert_eq!(g.zone_of(h), Zone::Board);
assert_eq!(g.hand(0), Vec::<Id>::new());
assert_eq!(g.board(0), vec![s, h]);
assert!(g.order_of_play(h) > g.order_of_play(s));
}