主な修正内容: - ArrayBox/RegexBox/JSONBoxで`push`メソッドの戻り値を適切に処理 - BufferBoxのインポートパスを修正(buffer::BufferBox) - StreamBoxでArrayBoxを正しくインポート - HTTPClientBoxをスタブ実装に変更(reqwest依存を一時的に無効化) テストプログラムも追加: - test_array_box_simple.nyash: ArrayBoxの基本テスト - test_new_boxes.nyash: 全Box実装の統合テスト NOTE: HTTPサポートは現在OpenSSL/pkg-config依存のため一時的に無効化。 将来的にはrustls等の純Rust実装への移行を検討。 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
389 B
Plaintext
20 lines
389 B
Plaintext
// 🧪 ArrayBoxの簡単なテスト
|
|
|
|
print("=== ArrayBox Simple Test ===")
|
|
local arr
|
|
arr = new ArrayBox()
|
|
|
|
// 基本的な操作
|
|
arr.push("Hello")
|
|
arr.push("World")
|
|
print("Length: " + arr.length())
|
|
print("Get 0: " + arr.get(0))
|
|
print("Get 1: " + arr.get(1))
|
|
|
|
// pop
|
|
local item
|
|
item = arr.pop()
|
|
print("Popped: " + item)
|
|
print("Length after pop: " + arr.length())
|
|
|
|
print("Test completed!") |