diff options
| author | ruki <[email protected]> | 2025-11-14 23:30:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-14 23:30:37 +0800 |
| commit | 8d9b5970ed3f44a84f5e7ed5f7f140e72a9f1e97 (patch) | |
| tree | 3a4f9d6b92acdc6bfdbdbc7350ea7857ebe7bf34 /tests/modules/json/test.lua | |
| parent | 4f6a4ba89e0138ea5b6b1b86b2599ad711e29ba0 (diff) | |
fix test
Diffstat (limited to 'tests/modules/json/test.lua')
| -rwxr-xr-x | tests/modules/json/test.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modules/json/test.lua b/tests/modules/json/test.lua index b2e53481b..b0e88112b 100755 --- a/tests/modules/json/test.lua +++ b/tests/modules/json/test.lua @@ -3,12 +3,12 @@ import("core.base.json") local json_null = json.null local json_pure_null = json.purenull -function json_decode(jsonstr) - return json.decode(jsonstr) +function json_decode(jsonstr, opt) + return json.decode(jsonstr, opt) end -function json_encode(luatable) - return json.encode(luatable) +function json_encode(luatable, opt) + return json.encode(luatable, opt) end function json_pure_decode(jsonstr) |
