shogi-server source
Revisión | 5c5a53f057b4e319ca2920f974d91dfe093f8268 (tree) |
---|---|
Tiempo | 2011-12-04 14:19:16 |
Autor | Daigo Moriwaki <beatles@user...> |
Commiter | Daigo Moriwaki |
Corrected the test case: test_instance_game_name
@@ -24,12 +24,12 @@ class TestFloodgate < Test::Unit::TestCase | ||
24 | 24 | end |
25 | 25 | |
26 | 26 | def test_instance_game_name |
27 | - fg = ShogiServer::League::Floodgate.new(nil, "floodgate-900-0") | |
28 | - assert(fg.game_name?("floodgate-900-0")) | |
29 | - assert(!fg.game_name?("floodgate-3600-0")) | |
30 | - fg = ShogiServer::League::Floodgate.new(nil, "floodgate-3600-0") | |
27 | + fg = ShogiServer::League::Floodgate.new(nil, {:game_name => "floodgate-900-0"}) | |
31 | 28 | assert(fg.game_name?("floodgate-900-0")) |
32 | 29 | assert(!fg.game_name?("floodgate-3600-0")) |
30 | + fg = ShogiServer::League::Floodgate.new(nil, {:game_name => "floodgate-3600-0"}) | |
31 | + assert(!fg.game_name?("floodgate-900-0")) | |
32 | + assert(fg.game_name?("floodgate-3600-0")) | |
33 | 33 | end |
34 | 34 | |
35 | 35 | end |