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