Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (1)
......@@ -12,6 +12,7 @@ local write = io.write
local rawget = rawget
local getmetatable = getmetatable
local exit = os.exit
local krprint = require("krprint")
---- Helper methods
......@@ -21,9 +22,9 @@ local printf = function(fmt, ...)
end
local printdiff = function(func_name, actual, expected)
printf("Assertion %s() failed for test below:\n", func_name)
printf(" Expected: %s\n", expected)
printf(" Got: %s\n", actual)
printf("Assertion %s() failed for test below (marked 'not ok'):\n", func_name)
printf("Expected: %s\n", krprint.pprint(expected))
printf("Got: %s\n", krprint.pprint(actual))
end
--- Compare potentially complex tables or objects
......