Res: [Sputnik-list] LuaSQL Versium Plugin
Sérgio Medeiros
tampo_8 at yahoo.com
Tue Mar 4 14:56:17 GMT+2 2008
> Another thought occurred to me. Is there a small versium test suite
> that could be written to validate a new plugin such as this? I know
> your time can probably be spent elsewhere, but it seems that would be
> an easy way for a developer to verify their plugin works as sputnik
> expects it's going to.
> Yes, there is/was:
> http://code.google.com/p/versium/source/browse/trunk/versium-tests/basic-test.lua
> http://code.google.com/p/versium/source/browse/trunk/versium-tests/basic-test-svn.lua
> Sérgio can tell us if it works at this point. (It should, though,
> since core versium hasn't changed since October, I think.)
Not quite. I am getting an error in line "148":
token[1] = string.gsub(token[1], "%s", "_")
"token[1]" sometimes is nil. I did not try
to see why this is happening, but the
remaining of the test is fine. You can also
put an "if token[1] ~= nil" in the beginning
of the block, run the programs and see if
the output is the same.
> It's a bit dated, and requires luaunit. My plan was (is?) to change
> it so that it uses shake instead.
Yuri, are you sure luaunit is necessary? When I did
$ grep -r "luaunit" versium
I got nothing.
Sérgio
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
More information about the Sputnik-list
mailing list