Sha256: 7f6c82dad5a0ac7a2976b85c0ab37b973cf969295130616618d44c8eb171cc16
Contents?: true
Size: 334 Bytes
Versions: 3
Compression:
Stored size: 334 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.4.0 | test/test_fifty_rule_move.rb |
chess-0.3.6 | test/test_fifty_rule_move.rb |
chess-0.3.5 | test/test_fifty_rule_move.rb |