summaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.lua')
-rwxr-xr-xtests/test.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 9424e8f..3c8c404 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -122,11 +122,17 @@ local ascii2 = json.decode(json.encode(ascii))
122print("8bit clean encode/decode: " .. tostring(ascii1 ~= ascii2)) 122print("8bit clean encode/decode: " .. tostring(ascii1 ~= ascii2))
123 123
124for i = 1, #arg do 124for i = 1, #arg do
125 print(arg[i] .. " enc->dec..")
126 local obj1 = json.decode(file_load(arg[i])) 125 local obj1 = json.decode(file_load(arg[i]))
127 local obj2 = json.decode(json.encode(obj1)) 126 local obj2 = json.decode(json.encode(obj1))
128 -- obj_compare(obj_json1, obj_json2) 127 if compare_values(obj, obj) then
129 print(".. unimplemented") 128 print(arg[i] .. ": PASS")
129 else
130 print(arg[i] .. ": FAIL")
131 print("== obj1 ==")
132 dump_value(obj1)
133 print("== obj2 ==")
134 dump_value(obj2)
135 end
130end 136end
131 137
132-- vi:ai et sw=4 ts=4: 138-- vi:ai et sw=4 ts=4: