Skip to content

Commit

Permalink
Finish unit test for table error crash
Browse files Browse the repository at this point in the history
Now it also verifies LuaUnit's error message content
  • Loading branch information
utkinn authored and bluebird75 committed Aug 26, 2018
1 parent c101fc7 commit 5498408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_luaunit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3599,7 +3599,8 @@ TestLuaUnitExecution = { __class__ = 'TestLuaUnitExecution' }

local runner = lu.LuaUnit.new()
runner:setOutputType( "NIL" )
runner:runSuiteByInstances( { { 'my_test_with_table_error', my_test_with_table_error } } ) -- TODO
runner:runSuiteByInstances { { 'my_test_with_table_error', my_test_with_table_error } }
lu.assertStrContains(runner.result.tests[1].msg, '{code=123}')
end


Expand Down

0 comments on commit 5498408

Please sign in to comment.