OSDN Git Service

8159d1cd803f51d8b3e0d85112c606df582fa681
[shogi-server/shogi-server.git] / test / TC_not_sennichite.rb
1 require "baseclient"
2 include Socket::Constants
3
4 class NotSennichiteTest < ReadFileClient
5   def test_oute_sennichite
6     csa = File.open(filepath("not_sennichite.csa")) {|f| f.read}
7     handshake(csa)
8     #cmd2 "%KACHI"
9     sleep 1
10     result1 = read_nonblock(@socket1)
11     result2 = read_nonblock(@socket2)
12     logout12
13     assert_no_match(/#DRAW/m, result1)
14     assert_no_match(/#DRAW/m, result2)
15   end
16 end # Client class
17