Files
hakorune/local_tests/test_modulo_simple.nyash
Moe Charm ef7a0de3b0 feat: Prepare for code modularization and cleanup
- 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.
2025-08-16 01:30:39 +09:00

25 lines
738 B
Plaintext

// 🧪 % Modulo Operator Test - Simple functionality verification
static box Main {
init { console }
main() {
me.console = new ConsoleBox()
me.console.log("🧪 Testing % Modulo Operator")
// Test 1: Basic modulo operation
local result1 = 10 % 3
me.console.log("10 % 3 = " + result1)
// Test 2: Chip-8 style bit masking
local result2 = 4096 % 4096
me.console.log("4096 % 4096 = " + result2)
// Test 3: Another typical case
local result3 = 256 % 16
me.console.log("256 % 16 = " + result3)
me.console.log("✅ % Modulo operator test complete!")
return "Modulo test finished"
}
}