Sha256: 773730c3dbaad3b7b02b5a04eb7af5712c9e90c219ccadce5b8ff4c476af30dc

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 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

5 entries across 5 versions & 1 rubygems

Version Path
chess-0.3.4 test/test_illegal_moves.rb
chess-0.3.3 test/test_illegal_moves.rb
chess-0.3.2 test/test_illegal_moves.rb
chess-0.3.1 test/test_illegal_moves.rb
chess-0.3.0 test/test_illegal_moves.rb