Class: TC_KeyStream
- Defined in:
- lib/quiz1/t/solutions/Jamis Buck/test/tc_key-stream.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
7 8 9 10 |
# File 'lib/quiz1/t/solutions/Jamis Buck/test/tc_key-stream.rb', line 7 def setup @stream = KeyStream.new @stream.deck = Deck.new end |
#test_next ⇒ Object
12 13 14 15 16 17 |
# File 'lib/quiz1/t/solutions/Jamis Buck/test/tc_key-stream.rb', line 12 def test_next expected = %w{ D W J X H Y R F D G } expected.each do |expected_letter| assert_equal expected_letter, @stream.next end end |