phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
29
json_test_simple.hako
Normal file
29
json_test_simple.hako
Normal file
@ -0,0 +1,29 @@
|
||||
using "apps/lib/json_native/core/node.hako" as JsonNode
|
||||
using "apps/lib/json_native/utils/string.hako" 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