scansion/console.lua

changeset 133
e087dd875160
parent 131
2d19fdddb9ee
child 145
df4faaa2d36f
equal deleted inserted replaced
132:e6df4368029d 133:e087dd875160
4 return table.concat(l, "\n"); 4 return table.concat(l, "\n");
5 end 5 end
6 6
7 local handlers = { 7 local handlers = {
8 ["script"] = function (data) 8 ["script"] = function (data)
9 return "TEST: "..(data.title or data.filename); 9 return "TEST: "..(data.title or data.filename or "untitled");
10 end; 10 end;
11 ["test-passed"] = function () 11 ["test-passed"] = function ()
12 return "PASS"; 12 return "PASS";
13 end; 13 end;
14 ["test-failed"] = function (data) 14 ["test-failed"] = function (data)

mercurial