shogi-server source
Revision | 1b16641868d762e247944dd4be3991fa65eebc19 (tree) |
---|---|
Time | 2015-01-12 23:06:28 |
Author | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
Get rid of a dupolicated method: test_kachi_good
@@ -24,24 +24,6 @@ EOM | ||
24 | 24 | assert_equal(true, b.good_kachi?(false)) |
25 | 25 | end |
26 | 26 | |
27 | - def test_kachi_good | |
28 | - b = ShogiServer::Board.new | |
29 | - b.set_from_str(<<EOM) | |
30 | -P1+HI+HI+KA+KA+OU * * * * | |
31 | -P2+FU+FU+FU+FU+FU+FU * * * | |
32 | -P+00FU00FU | |
33 | -EOM | |
34 | - assert_equal(true, b.good_kachi?(true)) | |
35 | - | |
36 | - b = ShogiServer::Board.new | |
37 | - b.set_from_str(<<EOM) | |
38 | -P8-HI-HI-KA-KA-OU * * * * | |
39 | -P9-FU-FU-FU-FU-FU-FU * * * | |
40 | -P-00FU | |
41 | -EOM | |
42 | - assert_equal(true, b.good_kachi?(false)) | |
43 | - end | |
44 | - | |
45 | 27 | def test_kachi_bad |
46 | 28 | b = ShogiServer::Board.new |
47 | 29 | b.set_from_str(<<EOM) |