OSDN Git Service

Merge branch '201312-KinPenalty' into wdoor-stable
[shogi-server/shogi-server.git] / test / TC_jishogi_kachi.rb
1 $:.unshift File.join(File.dirname(__FILE__), "..")
2 $topdir = File.expand_path File.dirname(__FILE__)
3 require "test/baseclient"
4 include Socket::Constants
5
6 class JishogiTest < ReadFileClient
7   def test_jishogi_kachi
8     csa = File.open(filepath("jishogi_kachi.csa")) {|f| f.read}
9     handshake(csa)
10     @p2.puts "%KACHI"
11     @p1.wait(/#JISHOGI\n#LOSE/)
12     @p2.wait(/#JISHOGI\n#WIN/)
13     assert true
14     logout12
15   end
16 end # Client class