Skip to content

Commit

Permalink
Add 'discard to lane with only face value' test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fayti1703 committed Feb 7, 2024
1 parent 438cccd commit c38737b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parseMove.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ test("discard card to attacker discard pile (full card)", () =>
expect(parseMove("x8&a")).toEqual({ kind: MoveKind.Discard, card: "8&", discardPile: AttackerDiscardPile })
)

test("discard card to lane discard pile (only face value)", () =>
expect(parseMove("x80")).toEqual({ kind: MoveKind.Discard, card: "8", discardPile: 0 })
)

test("discard card to lane discard pile (full card)", () =>
expect(parseMove("x8&0")).toEqual({ kind: MoveKind.Discard, card: "8&", discardPile: 0 })
)
Expand Down

0 comments on commit c38737b

Please sign in to comment.