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