shogi-server source
Revision | 7b9ccc1df11dcc6f9dca7d5b07534d9fcdf305de (tree) |
---|---|
Zeit | 2013-03-31 14:25:15 |
Autor | Daigo Moriwaki <beatles@user...> |
Commiter | Daigo Moriwaki |
Followed the change of the error message format.
@@ -247,29 +247,29 @@ class TestFactoryMethod < Test::Unit::TestCase | ||
247 | 247 | cmd = ShogiServer::Command.factory("should_be_error", @p) |
248 | 248 | assert_instance_of(ShogiServer::ErrorCommand, cmd) |
249 | 249 | cmd.call |
250 | - assert_match /unknown command should_be_error/, cmd.msg | |
250 | + assert_match /unknown command: should_be_error/, cmd.msg | |
251 | 251 | end |
252 | 252 | |
253 | 253 | def test_error_login |
254 | 254 | cmd = ShogiServer::Command.factory("LOGIN hoge foo", @p) |
255 | 255 | assert_instance_of(ShogiServer::ErrorCommand, cmd) |
256 | 256 | cmd.call |
257 | - assert_no_match /unknown command LOGIN hoge foo/, cmd.msg | |
257 | + assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg | |
258 | 258 | |
259 | 259 | cmd = ShogiServer::Command.factory("LOGin hoge foo", @p) |
260 | 260 | assert_instance_of(ShogiServer::ErrorCommand, cmd) |
261 | 261 | cmd.call |
262 | - assert_no_match /unknown command LOGIN hoge foo/, cmd.msg | |
262 | + assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg | |
263 | 263 | |
264 | 264 | cmd = ShogiServer::Command.factory("LOGIN hoge foo", @p) |
265 | 265 | assert_instance_of(ShogiServer::ErrorCommand, cmd) |
266 | 266 | cmd.call |
267 | - assert_no_match /unknown command LOGIN hoge foo/, cmd.msg | |
267 | + assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg | |
268 | 268 | |
269 | 269 | cmd = ShogiServer::Command.factory("LOGINhoge foo", @p) |
270 | 270 | assert_instance_of(ShogiServer::ErrorCommand, cmd) |
271 | 271 | cmd.call |
272 | - assert_no_match /unknown command LOGIN hoge foo/, cmd.msg | |
272 | + assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg | |
273 | 273 | end |
274 | 274 | end |
275 | 275 |