Sha256: aa6696d7ae0d9b952efd2ed49d9f31b8613c62d33a79fedf535125fde70f35ee

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

require 'test_helper'

class ChessTest < Minitest::Test
  def test_illegal_moves
    game = Chess::Game.new

    %w[Qf6 Rd4 Nc3=Q].each do |move|
      assert_raises(Chess::IllegalMoveError) do
        game << move
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chess-0.4.0 test/test_illegal_moves.rb
chess-0.3.6 test/test_illegal_moves.rb
chess-0.3.5 test/test_illegal_moves.rb