phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
20
local_tests/test_array_box_simple.hako
Normal file
20
local_tests/test_array_box_simple.hako
Normal 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!")
|
||||
Reference in New Issue
Block a user