diff --git a/packages/base/tests/functional/basics/Model.lua b/packages/base/tests/functional/basics/Model.lua index bec01671..0811b985 100644 --- a/packages/base/tests/functional/basics/Model.lua +++ b/packages/base/tests/functional/basics/Model.lua @@ -130,7 +130,7 @@ title function type_ string [Tube] water number [200] ]]) - local warning_func = function() + warning_func = function() t = Tube{ simulationSteps = 20, observingStep = 0.7, diff --git a/src/lua/terrame.lua b/src/lua/terrame.lua index 5cdcc277..df287ab7 100644 --- a/src/lua/terrame.lua +++ b/src/lua/terrame.lua @@ -712,12 +712,12 @@ local function graphicalInterface(package, modelName) local data = _Gtme.getLuaFile(_Gtme.packageInfo(package).path..s.."lua"..s..modelName..".lua") local model - forEachElement(data, function(idx, value, mtype) + forEachElement(data, function(_, value, mtype) if mtype == "Model" then model = value end end) - + _Gtme.configure(model, modelName, package) end diff --git a/test/run.lua b/test/run.lua index badaa594..01c975fd 100644 --- a/test/run.lua +++ b/test/run.lua @@ -399,12 +399,10 @@ forEachOrderedElement(commands, function(idx, group) local text = "Test executed in "..difference.." seconds" - if difference > 30 then + if difference > 60 then _Gtme.print("\027[00;37;41m"..text.."\027[00m") elseif difference > 10 then _Gtme.print("\027[00;37;43m"..text.."\027[00m") - elseif difference > 1 then - _Gtme.print("\027[00;37;42m"..text.."\027[00m") end end