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:
35
tests/development/test_missing_boxes.hako
Normal file
35
tests/development/test_missing_boxes.hako
Normal file
@ -0,0 +1,35 @@
|
||||
// 基本的なBoxの存在確認
|
||||
local console
|
||||
console = new ConsoleBox()
|
||||
|
||||
// 文字列リテラルと数値リテラルの動作確認
|
||||
local str
|
||||
str = "Hello World"
|
||||
console.log("String literal: " + str)
|
||||
|
||||
local num
|
||||
num = 42
|
||||
console.log("Number literal: " + num.toString())
|
||||
|
||||
local bool
|
||||
bool = true
|
||||
console.log("Bool literal: " + bool.toString())
|
||||
|
||||
// StringBox, IntegerBox, BoolBoxコンストラクタのテスト
|
||||
console.log("=== Constructor tests ===")
|
||||
|
||||
// これらがエラーになるかテスト
|
||||
console.log("Testing StringBox...")
|
||||
local str_box
|
||||
str_box = new StringBox("test")
|
||||
console.log("StringBox created")
|
||||
|
||||
console.log("Testing IntegerBox...")
|
||||
local int_box
|
||||
int_box = new IntegerBox(123)
|
||||
console.log("IntegerBox created")
|
||||
|
||||
console.log("Testing BoolBox...")
|
||||
local bool_box
|
||||
bool_box = new BoolBox(false)
|
||||
console.log("BoolBox created")
|
||||
Reference in New Issue
Block a user