OSDN Git Service

Corrected to be able to test TC_jishogi_kachi.rb alone.
[shogi-server/shogi-server.git] / test / TC_oute_sennichite.rb
1 require "baseclient"
2 include Socket::Constants
3
4 class OuteSennichiteTest < ReadFileClient
5   def test_oute_sennichite
6     csa = File.open(filepath("oute_sennichite.csa")) {|f| f.read}
7     handshake(csa)
8     @p1.wait(/#OUTE_SENNICHITE.#LOSE/m)
9     @p2.wait(/#OUTE_SENNICHITE.#WIN/m)
10     assert true
11     logout12
12   end
13
14   def test_oute_sennichite2
15     csa = File.open(filepath("oute_sennichite2.csa")) {|f| f.read}
16     handshake(csa)
17     @p1.wait(/#OUTE_SENNICHITE.#WIN/m)
18     @p2.wait(/#OUTE_SENNICHITE.#LOSE/m)
19     assert true
20     logout12
21   end
22
23   def test_oute_sennichite3
24     csa = File.open(filepath("oute_sennichite3.csa")) {|f| f.read}
25     handshake(csa)
26     @p1.wait(/#OUTE_SENNICHITE.#LOSE/m)
27     @p2.wait(/#OUTE_SENNICHITE.#WIN/m)
28     assert true
29     logout12
30   end
31 end # Client class
32