"Vitali Falileev" wrote:
> I made a little refactoring some parts of your
> code :)
Thanks, I included some of your changes in my
version. Notice that 'assert_list' must be:
$exports.assert_list = function (value) {
while (null != value) {
$exports.assert_pair(value);
value = value[1];
}
};
that is 'assert_pair' must be invoked as field
of '$exports'. I also changed 'last_pair' to:
$exports.last_pair = function (ell) {
if (null != ell)
while(null != ell[1])
ell = ell[1];
return ell;
};
> Also try to use NekoUnit for unit testing the
> module.
I am currently using my own unit test module,
simpler than NekoUnit. I will give it a try.
--
Marco Maggi
--
Neko : One VM to run them all
(http://nekovm.org)