16 lines
492 B
Rust
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));
|
|
}
|