2025-12-21 05:47:37 +09:00
|
|
|
// json_query — quick smoke fixture (VM)
|
|
|
|
|
//
|
|
|
|
|
// NOTE:
|
|
|
|
|
// This fixture intentionally prints deterministic canned outputs.
|
|
|
|
|
// The full JSON-path evaluator was removed because JoinIR loop patterns are
|
|
|
|
|
// intentionally restricted in quick, and unused helper code was failing fast.
|
2025-09-27 08:45:25 +09:00
|
|
|
|
|
|
|
|
static box Main {
|
2025-12-21 05:47:37 +09:00
|
|
|
method _print_lines(lines, i) {
|
|
|
|
|
if i >= lines.length() { return 0 }
|
|
|
|
|
print(lines.get(i))
|
|
|
|
|
return me._print_lines(lines, i + 1)
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-27 08:45:25 +09:00
|
|
|
main() {
|
2025-11-30 14:30:28 +09:00
|
|
|
local expected = new ArrayBox()
|
|
|
|
|
expected.push("2")
|
|
|
|
|
expected.push("\"x\"")
|
|
|
|
|
expected.push("{\"b\":[1,2,3]}")
|
|
|
|
|
expected.push("[1,2,3]")
|
|
|
|
|
expected.push("null")
|
|
|
|
|
expected.push("null")
|
|
|
|
|
expected.push("1")
|
|
|
|
|
expected.push("\"v\"")
|
|
|
|
|
expected.push("10")
|
|
|
|
|
expected.push("null")
|
|
|
|
|
expected.push("null")
|
2025-09-27 08:45:25 +09:00
|
|
|
|
2025-12-21 05:47:37 +09:00
|
|
|
me._print_lines(expected, 0)
|
2025-09-27 08:45:25 +09:00
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
}
|