OSDN Git Service

- shogi_server/pairing.rb:
[shogi-server/shogi-server.git] / test / TC_jishogi_kachi.rb
1 require "baseclient"
2 include Socket::Constants
3
4 class JishogiTest < ReadFileClient
5   def test_jishogi_kachi
6     csa = File.open(filepath("jishogi_kachi.csa")) {|f| f.read}
7     handshake(csa)
8     @p2.puts "%KACHI"
9     @p1.wait(/#JISHOGI\n#LOSE/)
10     @p2.wait(/#JISHOGI\n#WIN/)
11     assert true
12     logout12
13   end
14 end # Client class