Class: TC_UnkeyedAlgorithm

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/quiz1/t/solutions/Jamis Buck/test/tc_unkeyed-algorithm.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



7
8
9
# File 'lib/quiz1/t/solutions/Jamis Buck/test/tc_unkeyed-algorithm.rb', line 7

def setup
  @algo = UnkeyedAlgorithm.new
end

#test_new_deckObject



11
12
13
14
15
# File 'lib/quiz1/t/solutions/Jamis Buck/test/tc_unkeyed-algorithm.rb', line 11

def test_new_deck
  expected = (1..52).to_a + [ "A", "B" ]
  deck = @algo.new_deck
  assert_equal expected, deck.to_a
end