import * as a from "liba.so"; function assert(expr) { if (!eval(expr)) { throw Error(expr); } } var v000 = new a.version(); var v100 = new a.version(1); var v010 = new a.version(0, 1); var v001 = new a.version(0, 0, 1); assert("v000.lt(v010)"); assert("v001.gt(v000)"); assert("v000.le(v000)"); assert("v000.ge(v000)"); assert("v000.eq(v000)"); assert("v000.ne(v100)"); assert("v100.major"); assert("v010.minor"); assert("v001.third"); assert("v000.extra == 0"); assert("v000.alpha == '.'"); console.log(a.version.MAJOR); console.log(a.version.MINOR); console.log(a.version.PATCH); console.log(a.version.check());