Merge pull request #865 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()
test.print('-------')
test.print(package.path)
test.print('-------')
test.print(package.cpath)
test.print('-------')
require("example")
end

View File

@ -175,21 +175,26 @@
function suite.remove_onExactValueMatch()
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" })
local result = configset.fetch(cset, f, {})
test.print(table.tostring(result))
local result = configset.fetch(cset, f)
test.isequal({ "Symbols", "MFC" }, result)
end
function suite.remove_onMultipleValues()
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" })
local result = configset.fetch(cset, f, {})
test.print(table.tostring(result))
local result = configset.fetch(cset, f)
test.isequal({ "Symbols", "WinMain" }, result)
end