28 lines
877 B
Plaintext
28 lines
877 B
Plaintext
|
|
// FileBox toString()メソッドテスト - 動的ライブラリ実装
|
||
|
|
|
||
|
|
static box Main {
|
||
|
|
init { console }
|
||
|
|
|
||
|
|
main() {
|
||
|
|
me.console = new ConsoleBox()
|
||
|
|
me.console.log("🧪 FileBox toString()テスト開始")
|
||
|
|
|
||
|
|
// FileBoxインスタンス作成
|
||
|
|
local testFile
|
||
|
|
testFile = new FileBox("test.txt")
|
||
|
|
me.console.log("✅ FileBox作成成功: " + testFile.toString())
|
||
|
|
|
||
|
|
// toString()メソッド呼び出し
|
||
|
|
local fileStr
|
||
|
|
fileStr = testFile.toString()
|
||
|
|
me.console.log("✅ toString()結果: " + fileStr)
|
||
|
|
|
||
|
|
// 存在確認テスト
|
||
|
|
local exists
|
||
|
|
exists = testFile.exists()
|
||
|
|
me.console.log("📁 ファイル存在: " + exists.toString())
|
||
|
|
|
||
|
|
me.console.log("🎉 FileBox toString()テスト完了!")
|
||
|
|
return "success"
|
||
|
|
}
|
||
|
|
}
|