mir: implement proper short-circuit lowering (&&/||) via branch+phi; vm: add NYASH_VM_TRACE exec/phi logs and reg_load diagnostics; vm-fallback: minimal Void guards (push/get_position/line/column), MapBox.birth no-op; smokes: filter builtin Array/Map plugin notices; docs: CURRENT_TASK updated
This commit is contained in:
29
json_test_simple.nyash
Normal file
29
json_test_simple.nyash
Normal file
@ -0,0 +1,29 @@
|
||||
using "apps/lib/json_native/core/node.nyash" as JsonNode
|
||||
using "apps/lib/json_native/utils/string.nyash" as StringUtils
|
||||
|
||||
// シンプルなJSONテスト
|
||||
static box SimpleTest {
|
||||
main() {
|
||||
print("🧪 Simple JSON Test")
|
||||
|
||||
// 基本的なテスト
|
||||
local json_null = JsonNode.parse("null")
|
||||
print("null parse: " + json_null.stringify())
|
||||
|
||||
local json_bool = JsonNode.parse("true")
|
||||
print("true parse: " + json_bool.stringify())
|
||||
|
||||
local json_int = JsonNode.parse("42")
|
||||
print("integer parse: " + json_int.stringify())
|
||||
|
||||
local json_str = JsonNode.parse("\"hello\"")
|
||||
print("string parse: " + json_str.stringify())
|
||||
|
||||
// StringUtils テスト
|
||||
local trimmed = StringUtils.trim(" hello world ")
|
||||
print("trimmed: '" + trimmed + "'")
|
||||
|
||||
print("✅ Simple test complete")
|
||||
return 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user