OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Improved performance and stability of tests.
[shogi-server/shogi-server.git]
/
test
/
TC_before_agree.rb
1
require "baseclient"
2
require "kconv"
3
4
class TestBeforeAgree < BaseClient
5
6
def test_gote_logout_after_sente_agree
7
login
8
9
@p1.puts "AGREE"
10
@p2.puts "LOGOUT"
11
@p1.wait /^REJECT/
12
@p2.wait /^REJECT/
13
assert true
14
end
15
16
def test_sente_logout_after_gote_agree
17
login
18
19
@p2.puts "AGREE"
20
@p1.puts "LOGOUT"
21
@p1.wait /^REJECT/
22
@p2.wait /^REJECT/
23
assert true
24
end
25
26
def test_gote_logout_before_sente_agree
27
login
28
29
@p2.puts "LOGOUT"
30
@p1.wait /^REJECT/
31
@p2.wait /^REJECT/
32
assert true
33
end
34
35
def test_sente_logout_before_gote_agree
36
login
37
38
@p1.puts "LOGOUT"
39
@p1.wait /^REJECT/
40
@p2.wait /^REJECT/
41
assert true
42
end
43
end