Page 2 of 2

Re: Unit testing for mudlet-lua

Posted: Sat Aug 03, 2013 6:15 am
by Vadi
Just a quick look at the script - it uses insertText twice, while I think it means to use cinsertText() the second time.

It also possibly shows a bug in Mudlet, because insertText's data is duplicated:

Image

Re: Unit testing for mudlet-lua

Posted: Mon Aug 12, 2013 9:44 am
by Heiko
Looks like you have used an old version for your tests as your screenshot shows an issue that has been addressed in git after the 2.1 release.
With latest git I get this:
cecho-cinsert-problem.png
Bugs:
1. cinsert() doesn't process \n correctly
2. (!) line breaks in cecho() show but the line order is reversed (!)
3. <> problem in decho() compared to cecho() <<2>>
4. hecho() documentation needs to be changed to only accept 3 8-bit double figure hex codes 000000 instead of 000

Re: Unit testing for mudlet-lua

Posted: Fri Oct 18, 2013 9:29 pm
by Vadi
All of those issues have been fixed now, and are pending merging into main sf git.

Re: Unit testing for mudlet-lua

Posted: Tue May 06, 2014 3:54 pm
by phasma
The new db:create() function is missing a couple of = (Lines 432 and 438).

Re: Unit testing for mudlet-lua

Posted: Tue May 06, 2014 7:18 pm
by Vadi
Thanks, fixed.