- Archive old documentation and test files to `docs/archive/` and `local_tests/`. - Remove various temporary and old files from the project root. - Add `nekocode-rust` analysis tool and its output files (`nekocode/`, `.nekocode_sessions/`, `analysis.json`). - Minor updates to `apps/chip8_nyash/chip8_emulator.nyash` and `local_tests` files. This commit cleans up the repository and sets the stage for further code modularization efforts, particularly in the `src/interpreter` and `src/parser` modules, based on recent analysis.
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
// 🧪 Null Literal Support Test
|
|
|
|
static box Main {
|
|
init { console }
|
|
|
|
main() {
|
|
me.console = new ConsoleBox()
|
|
me.console.log("🧪 Testing Null Literal Support")
|
|
|
|
// Test 1: Basic null assignment
|
|
local null_value = null
|
|
me.console.log("Null value: " + null_value)
|
|
|
|
// Test 2: Non-null assignment
|
|
local non_null_value = "not null"
|
|
me.console.log("Non-null value: " + non_null_value)
|
|
|
|
// Test 3: Null comparison (if supported)
|
|
me.console.log("Testing null comparison...")
|
|
|
|
// Note: Comparison operators might not be fully working yet
|
|
// Let's try basic null usage
|
|
me.console.log("Null variable type: " + null_value.type_name())
|
|
|
|
// Test 4: Null in string concatenation
|
|
local concat_test = "Value is: " + null_value
|
|
me.console.log("Concatenation with null: " + concat_test)
|
|
|
|
me.console.log("✅ Null literal parsing works!")
|
|
return "Null literal test complete"
|
|
}
|
|
} |