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.
This commit is contained in:
23
local_tests/test_socket_simple.nyash
Normal file
23
local_tests/test_socket_simple.nyash
Normal file
@ -0,0 +1,23 @@
|
||||
// Simple test for SocketBox state sharing
|
||||
static box Main {
|
||||
main() {
|
||||
print("🧪 Testing SocketBox state sharing...")
|
||||
|
||||
local socket
|
||||
socket = new SocketBox()
|
||||
|
||||
print("Initial isServer: " + socket.isServer().toString())
|
||||
|
||||
local bindOk
|
||||
bindOk = socket.bind("127.0.0.1", 8080)
|
||||
print("Bind result: " + bindOk.toString())
|
||||
|
||||
print("After bind isServer: " + socket.isServer().toString())
|
||||
|
||||
local closeOk
|
||||
closeOk = socket.close()
|
||||
print("Close result: " + closeOk.toString())
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user