1 $:.unshift File.join(File.dirname(__FILE__), "..")
4 require 'shogi_server/player'
6 class TestPlayer < Test::Unit::TestCase
8 @p = ShogiServer::BasicPlayer.new
11 def test_without_password
14 assert_nil(@p.player_id)
19 @p.set_password("abc")
25 @p.set_password("abc")
26 assert_match(/@/, @p.player_id)
30 assert_nothing_raised {@p.rating_group = 1}