assert_equal compares an expected value with an actual value using Ruby's == operator. Matching values pass the assertion; differing values fail it. section 15.5.1
Checking a deck after dealing
After dealing one card, assert_equal(51, @deck.size) verifies that the deck contains 51 cards. After dealing five, assert_equal(47, @deck.size) performs the corresponding check.
Minitest counts each call as an assertion and reports failures separately from errors. A custom MicroTest implementation builds assert_equal by comparing its arguments, passing the result to assert, and displaying both values when the comparison fails. section 15.5.1 section 15.5.2
