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:
Unit testing for mudlet-lua
Re: Unit testing for mudlet-lua
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: 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
With latest git I get this: 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
All of those issues have been fixed now, and are pending merging into main sf git.
Re: Unit testing for mudlet-lua
The new db:create() function is missing a couple of = (Lines 432 and 438).
Re: Unit testing for mudlet-lua
Thanks, fixed.