| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/LuaDist/lua-cmsgpack/master/test.lua | [Back] [Original] |
-- lua_cmsgpack.c lib tests
-- Copyright(C) 2012 Salvatore Sanfilippo, All Rights Reserved.
-- See the copyright notice at the end of lua_cmsgpack.c for more information.
local cmsgpack = require "cmsgpack"
passed = 0
failed = 0
function hex(s)
local i
local h = ""
for i = 1, #s do
h = h .. string.format("%02x",string.byte(s,i))
end
return h
end
function ascii_to_num(c)
if (c >= string.byte("0") and c = string.byte("A") and c = string.byte("a") and c
| Web Proxy Viewer | New URL | Original Page |