require 'minitest/autorun' require 'holdem' class DeckTest < Minitest::Test def setup @deck = Deck.new end def test_deck_has_52_cards assert_equal 52, @deck.count end def test_deck_next_card card = @deck.dup.pop assert_equal card, @deck.pop assert_equal 51, @deck.size end def test_shuffle unshuffled = @deck.dup shuffled = @deck.shuffle refute_equal unshuffled, shuffled end end