🐛 fix: コンパイルエラーを修正

主な修正内容:
- 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>
This commit is contained in:
Moe Charm
2025-08-10 13:18:21 +09:00
parent 750543be7c
commit 44049835d1
10 changed files with 242 additions and 111 deletions

View File

@ -0,0 +1,20 @@
// 🧪 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!")