Skip to content

Commit

Permalink
fix: broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
YoEnte committed Jan 20, 2025
1 parent e9e4534 commit 124c602
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugin/test/card_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ mod tests {
#[test]
fn test_play_card_not_on_hare_field() {
let mut state = create_test_game_state();
let _card = Card::FallBack;
let card = Card::FallBack;
let mut current_player = state.clone_current_player();
current_player.position = 1;
state.update_player(current_player);
let result = card.perform(&mut state, vec![Card::EatSalad, Card::SwapCarrots]);
assert!(result.is_err());
}

#[test]
Expand Down

0 comments on commit 124c602

Please sign in to comment.