2 var liba = require("../liba");
3 function assert(expr) {
8 function do_leak_check() {
9 for (const arg of arguments) {
12 if (liba.do_leak_check) {
16 var ctx = new liba.pid();
18 console.log(ctx.zero().run(1, 0));
19 console.log(ctx.zero().pos(1, 0));
20 console.log(ctx.zero().inc(1, 0));
21 assert("ctx.kp != undefined");
22 assert("ctx.ki != undefined");
23 assert("ctx.kd != undefined");
24 assert("ctx.summax != undefined");
25 assert("ctx.summin != undefined");
26 assert("ctx.outmax != undefined");
27 assert("ctx.outmin != undefined");
28 assert("ctx.out != undefined");
29 assert("ctx.fdb != undefined");
30 assert("ctx.err != undefined");