Sha256: afdc3be59a5fc254692fde9624ed680550b8d38f7793338ead2bc94ce1598ef6

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

$: << File.join( File.dirname( __FILE__ ), "..", "lib" )
require 'test/unit'
require 'cipher'

class TC_KeyStream < Test::Unit::TestCase

  def setup
    @stream = KeyStream.new
    @stream.deck = Deck.new
  end

  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

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
copland-0.8.0 examples/solitaire-cipher/test/tc_key-stream.rb
copland-1.0.0 examples/solitaire-cipher/test/tc_key-stream.rb
rubyzip-0.9.1 lib/quiz1/t/solutions/Jamis Buck/test/tc_key-stream.rb