Initial investigation: Identified core Box registration issues

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-12 08:12:26 +00:00
parent a2c8f84de5
commit dadb5afcff
7 changed files with 94 additions and 16 deletions

View File

@ -0,0 +1,32 @@
// Test Basic Box Constructor Issues (Problem 1)
// This should demonstrate the core failures described in the issue
local console = new ConsoleBox()
console.log("=== Testing Basic Box Constructors ===")
// Test StringBox constructor
console.log("Testing StringBox constructor...")
local str_box = new StringBox("test")
console.log("StringBox created: " + str_box.toString())
// Test IntegerBox constructor
console.log("Testing IntegerBox constructor...")
local int_box = new IntegerBox(123)
console.log("IntegerBox created: " + int_box.toString())
// Test BoolBox constructor
console.log("Testing BoolBox constructor...")
local bool_box = new BoolBox(false)
console.log("BoolBox created: " + bool_box.toString())
// Compare with literals (these should work)
console.log("=== Comparing with Literals ===")
local str_literal = "test"
local int_literal = 123
local bool_literal = false
console.log("String literal: " + str_literal)
console.log("Integer literal: " + int_literal)
console.log("Bool literal: " + bool_literal)
console.log("Test complete!")