change sizeof(a_cast) to sizeof(void*)
[liba.git] / lua / test / a.lua
bloba7b0841609b5a04df0d0b65b71fde3956bafda58
1 #!/usr/bin/env lua
3 package.path = arg[0]:sub(0, -arg[0]:match("([^/\\]*)$"):len() - 1) .. "?.lua;" .. package.path
4 local test = require("test")
5 local a = require("liba")
6 for i, v in pairs(arg) do
7 if i == 1 then
8 io.output(v)
9 break
10 end
11 end
12 test.dir(a)
13 test.log(a.isqrt(1, 2, 4))
14 test.log(a.rsqrt(1, 2, 4))
15 test.log(a.hash_bkdr(arg[0]))
16 test.log(a.hash_sdbm(arg[0]))