OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- shogi_server/command.rb: Commands specific to 81Dojo, startig with '%%%', are just...
[shogi-server/shogi-server.git]
/
test
/
TC_command.rb
diff --git
a/test/TC_command.rb
b/test/TC_command.rb
index
db3b333
..
455fdd8
100644
(file)
--- a/
test/TC_command.rb
+++ b/
test/TC_command.rb
@@
-202,6
+202,11
@@
class TestFactoryMethod < Test::Unit::TestCase
assert_instance_of(ShogiServer::GetBuoyCountCommand, cmd)
end
assert_instance_of(ShogiServer::GetBuoyCountCommand, cmd)
end
+ def test_void_command
+ cmd = ShogiServer::Command.factory("%%%HOGE", @p)
+ assert_instance_of(ShogiServer::VoidCommand, cmd)
+ end
+
def test_error
cmd = ShogiServer::Command.factory("should_be_error", @p)
assert_instance_of(ShogiServer::ErrorCommand, cmd)
def test_error
cmd = ShogiServer::Command.factory("should_be_error", @p)
assert_instance_of(ShogiServer::ErrorCommand, cmd)