Initial investigation: Identified core Box registration issues
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
22
test_float_box_issues.nyash
Normal file
22
test_float_box_issues.nyash
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