Files
hakorune/local_tests/test_filebox_v2_simple.nyash
Moe Charm 5582ad45c0 feat: Phase 9.78e complete - instance_v2 migration with legacy compatibility
- instance_v2 now includes legacy compatibility layer
- All interpreter code migrated to use instance_v2
- Added legacy field access methods (get_fields, set_field_legacy, etc.)
- Fixed type conversion issues (NyashValue vs SharedNyashBox)
- instance.rs still exists but no longer used in interpreter
- TODO: Remove instance.rs completely in next phase
- TODO: Implement proper SharedNyashBox -> NyashValue conversion

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 22:35:34 +09:00

20 lines
409 B
Plaintext

// Simple FileBox v2 Plugin Test - no string concatenation
print("Testing FileBox v2 plugin...")
local file
file = new FileBox()
// Test open without string concatenation
local result
result = file.open("test.txt", "w")
print("Open succeeded")
// Test write
result = file.write("Hello Nyash!")
print("Write succeeded")
// Test close
result = file.close()
print("Close succeeded")
print("Test completed!")