Sha256: 9b1e3799f75694c393543e5dbf68e64093f615005ffab4ee7b54cb4979597971
Contents?: true
Size: 586 Bytes
Versions: 10
Compression:
Stored size: 586 Bytes
Contents
require "shogi/cell" require "shogi/piece" class CellTest < Test::Unit::TestCase def setup piece = Shogi::Piece::FU.new @cell = Shogi::Cell.new("3", "9", piece, true) end def test_place_csa assert_equal("39", @cell.place_csa) end def test_place_usi assert_equal("3i", @cell.place_usi) end def test_piece_csa assert_equal("+FU", @cell.piece_csa) @cell.turn = false assert_equal("-FU", @cell.piece_csa) end def test_piece_usi assert_equal("P", @cell.piece_usi) @cell.turn = false assert_equal("p", @cell.piece_usi) end end
Version data entries
10 entries across 10 versions & 1 rubygems