fix constructor of version with a string argument
[liba.git] / lua / test / mf.lua
blob022351d6bac75de0cde1a107424fbeca7d64d068
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 test.dir(a.mf)
7 test.dir(getmetatable(a.mf))
9 a.mf.gauss(0, 0, 0)
10 a.mf.gauss2(0, 0, 0, 0, 0)
11 a.mf.gbell(0, 0, 0, 0)
12 a.mf.sig(0, 0, 0)
13 a.mf.dsig(0, 0, 0, 0, 0)
14 a.mf.psig(0, 0, 0, 0, 0)
15 a.mf.trap(0, 0, 0, 0, 0)
16 a.mf.tri(0, 0, 0, 0)
17 a.mf.lins(0, 0, 0)
18 a.mf.linz(0, 0, 0)
19 a.mf.s(0, 0, 0)
20 a.mf.z(0, 0, 0)
21 a.mf.pi(0, 0, 0, 0, 0)
23 a.mf.mf(a.mf.GAUSS, 0, 0, 0)
24 a.mf.mf(a.mf.GAUSS2, 0, 0, 0, 0, 0)
25 a.mf.mf(a.mf.GBELL, 0, 0, 0, 0)
26 a.mf.mf(a.mf.SIG, 0, 0, 0)
27 a.mf.mf(a.mf.DSIG, 0, 0, 0, 0, 0)
28 a.mf.mf(a.mf.PSIG, 0, 0, 0, 0, 0)
29 a.mf.mf(a.mf.TRAP, 0, 0, 0, 0, 0)
30 a.mf.mf(a.mf.TRI, 0, 0, 0, 0)
31 a.mf.mf(a.mf.LINS, 0, 0, 0)
32 a.mf.mf(a.mf.LINZ, 0, 0, 0)
33 a.mf.mf(a.mf.S, 0, 0, 0)
34 a.mf.mf(a.mf.Z, 0, 0, 0)
35 a.mf.mf(a.mf.PI, 0, 0, 0, 0, 0)