• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revision7b9ccc1df11dcc6f9dca7d5b07534d9fcdf305de (tree)
Zeit2013-03-31 14:25:15
AutorDaigo Moriwaki <beatles@user...>
CommiterDaigo Moriwaki

Log Message

Followed the change of the error message format.

Ändern Zusammenfassung

Diff

--- a/test/TC_command.rb
+++ b/test/TC_command.rb
@@ -247,29 +247,29 @@ class TestFactoryMethod < Test::Unit::TestCase
247247 cmd = ShogiServer::Command.factory("should_be_error", @p)
248248 assert_instance_of(ShogiServer::ErrorCommand, cmd)
249249 cmd.call
250- assert_match /unknown command should_be_error/, cmd.msg
250+ assert_match /unknown command: should_be_error/, cmd.msg
251251 end
252252
253253 def test_error_login
254254 cmd = ShogiServer::Command.factory("LOGIN hoge foo", @p)
255255 assert_instance_of(ShogiServer::ErrorCommand, cmd)
256256 cmd.call
257- assert_no_match /unknown command LOGIN hoge foo/, cmd.msg
257+ assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg
258258
259259 cmd = ShogiServer::Command.factory("LOGin hoge foo", @p)
260260 assert_instance_of(ShogiServer::ErrorCommand, cmd)
261261 cmd.call
262- assert_no_match /unknown command LOGIN hoge foo/, cmd.msg
262+ assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg
263263
264264 cmd = ShogiServer::Command.factory("LOGIN hoge foo", @p)
265265 assert_instance_of(ShogiServer::ErrorCommand, cmd)
266266 cmd.call
267- assert_no_match /unknown command LOGIN hoge foo/, cmd.msg
267+ assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg
268268
269269 cmd = ShogiServer::Command.factory("LOGINhoge foo", @p)
270270 assert_instance_of(ShogiServer::ErrorCommand, cmd)
271271 cmd.call
272- assert_no_match /unknown command LOGIN hoge foo/, cmd.msg
272+ assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg
273273 end
274274 end
275275