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:
22
tests/development/test_float_box_issues.hako
Normal file
22
tests/development/test_float_box_issues.hako
Normal file
@ -0,0 +1,22 @@
|
||||
// Test FloatBox Issues (Problem 4)
|
||||
// This should demonstrate the FloatBox value access issues
|
||||
|
||||
local console = new ConsoleBox()
|
||||
console.log("=== Testing FloatBox Issues ===")
|
||||
|
||||
// Test FloatBox creation (this should work)
|
||||
console.log("Creating FloatBox...")
|
||||
local float = new FloatBox(3.14)
|
||||
console.log("FloatBox created successfully")
|
||||
|
||||
// Test toString method (this should work)
|
||||
console.log("Testing toString...")
|
||||
local float_str = float.toString()
|
||||
console.log("FloatBox toString: " + float_str)
|
||||
|
||||
// Test value field access (this should fail)
|
||||
console.log("Testing value field access...")
|
||||
// local value = float.value
|
||||
// console.log("FloatBox value: " + value)
|
||||
|
||||
console.log("FloatBox test complete!")
|
||||
Reference in New Issue
Block a user