Merge pull request from Blizzard/remove-prints

Remove "test.print" calls.
This commit is contained in:
Tom van Dijck 2017-08-09 09:21:01 -07:00 committed by GitHub
commit cb1cbe5c4f
2 changed files with 11 additions and 11 deletions

View File

@ -9,11 +9,6 @@
function suite.setup() function suite.setup()
test.print('-------')
test.print(package.path)
test.print('-------')
test.print(package.cpath)
test.print('-------')
require("example") require("example")
end end

View File

@ -175,21 +175,26 @@
function suite.remove_onExactValueMatch() function suite.remove_onExactValueMatch()
local f = field.get("flags") local f = field.get("flags")
configset.store(cset, f, { "Symbols", "WinMain", "MFC" })
local r, err = configset.store(cset, f, { "Symbols", "WinMain", "MFC" })
test.isnil(err)
configset.remove(cset, f, { "WinMain" }) configset.remove(cset, f, { "WinMain" })
local result = configset.fetch(cset, f, {}) local result = configset.fetch(cset, f)
test.print(table.tostring(result))
test.isequal({ "Symbols", "MFC" }, result) test.isequal({ "Symbols", "MFC" }, result)
end end
function suite.remove_onMultipleValues() function suite.remove_onMultipleValues()
local f = field.get("flags") local f = field.get("flags")
configset.store(cset, f, { "Symbols", "Maps", "WinMain", "MFC" })
local r, err = configset.store(cset, f, { "Symbols", "Maps", "WinMain", "MFC" })
test.isnil(err)
configset.remove(cset, f, { "Maps", "MFC" }) configset.remove(cset, f, { "Maps", "MFC" })
local result = configset.fetch(cset, f, {}) local result = configset.fetch(cset, f)
test.print(table.tostring(result))
test.isequal({ "Symbols", "WinMain" }, result) test.isequal({ "Symbols", "WinMain" }, result)
end end