Refactoring: added sanity checks in setters

This commit is contained in:
mpeterv
2014-03-02 00:49:44 +04:00
parent 73467e2836
commit db3e21e944
3 changed files with 180 additions and 125 deletions

View File

@@ -20,7 +20,7 @@ describe("tests related to :pparse()", function()
it("still raises an error if it is caused by misconfiguration", function()
local parser = Parser()
parser:option "--foo"
:count "a lot"
:aliases {1, 2, 3}
assert.has_error(function() parser:pparse{} end)
end)
end)