Sha256: 1deb17f350c273a3fd49add880948b7f01dc3c623d6e87e565812ab638b6bd82
Contents?: true
Size: 331 Bytes
Versions: 3
Compression:
Stored size: 331 Bytes
Contents
require 'test_helper' class ChessTest < Minitest::Test TestHelper.pgns('fifty_move_rule').each do |file| name = File.basename(file, '.pgn') define_method "test_fifty_move_rule_#{name}" do pgn = Chess::Pgn.new(file) game = Chess::Game.new(pgn.moves) assert game.board.fifty_move_rule? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chess-0.3.4 | test/test_fifty_rule_move.rb |
chess-0.3.3 | test/test_fifty_rule_move.rb |
chess-0.3.2 | test/test_fifty_rule_move.rb |