Files
hakorune/local_tests/test_no_isserver.hako

30 lines
958 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 🔍 isServer()を使わないテスト - 問題箇所特定
static box Main {
init { console }
main() {
me.console = new ConsoleBox()
me.console.log("isServer()なしテスト開始")
# SocketBox作成
local socket = new SocketBox()
me.console.log("SocketBox作成完了")
# toString()テストisServer()を内部で呼んでいるかも)
me.console.log("toString()テスト開始")
local socketStr = socket.toString()
me.console.log("SocketBox: " + socketStr)
# bind実行isServer()を呼ばずに)
me.console.log("bind実行開始")
local bindResult = socket.bind("127.0.0.1", 19999)
me.console.log("Bind結果: " + bindResult.toString())
# クリーンアップ
socket.close()
me.console.log("テスト完了")
return "SUCCESS_NO_ISSERVER"
}
}