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:
23
local_tests/test_array_simple.hako
Normal file
23
local_tests/test_array_simple.hako
Normal file
@ -0,0 +1,23 @@
|
||||
// ArrayBox簡単なテスト
|
||||
print("=== ArrayBox簡単なテスト ===")
|
||||
|
||||
local arr
|
||||
arr = new ArrayBox()
|
||||
print("Created ArrayBox")
|
||||
|
||||
// 要素を追加
|
||||
arr.push("Hello")
|
||||
arr.push("World")
|
||||
print("Added elements")
|
||||
|
||||
// 長さを確認
|
||||
print("Length: " + arr.length())
|
||||
|
||||
// 配列の内容を表示
|
||||
print("Array: " + arr.toString())
|
||||
|
||||
// 要素を取得
|
||||
print("First element: " + arr.get(0))
|
||||
print("Second element: " + arr.get(1))
|
||||
|
||||
print("\n=== Test complete! ===")
|
||||
Reference in New Issue
Block a user