feat(plugins): migrate Python family to TypeBox v2; complete first‑party v2 set (Regex/Net/Path/Math/Time/File)\n\nfeat(smoke): add Net round‑trip sample and wire to plugin v2 smoke\n\nfeat(cli): add --emit-mir-json and runner emit+exit path\n\nchore(config): register Python v2 boxes in nyash.toml\n\nchore(loader): improve v2 diagnostics and ensure v2 shim dispatch\n\nchore(build): integrate ny-llvmc env gate in build_llvm.sh\n\nchore(tasks): update CURRENT_TASK with v2 Python/Net/emit flag
This commit is contained in:
12
apps/tests/plugin_v2_functional.nyash
Normal file
12
apps/tests/plugin_v2_functional.nyash
Normal file
@ -0,0 +1,12 @@
|
||||
// Plugin v2 functional smoke (regex + response only)
|
||||
local r = new RegexBox()
|
||||
r.compile("h.llo")
|
||||
print(r.isMatch("hello"))
|
||||
print(r.isMatch("HALLO"))
|
||||
|
||||
local resp = new ResponseBox()
|
||||
resp.setStatus(201)
|
||||
resp.setHeader("X-Test", "ok")
|
||||
resp.write("body-123")
|
||||
print(resp.getStatus())
|
||||
print(resp.readBody())
|
||||
Reference in New Issue
Block a user