Fix some line length warnings

This commit is contained in:
Peter Melnichenko
2018-03-17 13:34:50 +03:00
parent 3a43d528c6
commit 4d06371a07
3 changed files with 26 additions and 9 deletions

View File

@@ -40,8 +40,12 @@ describe("tests related to mutexes", function()
:description "Print additional debug information. "
)
assert.has_error(function() parser:parse{"-qv"} end, "option '-v' can not be used together with option '-q'")
assert.has_error(function() parser:parse{"-v", "--quiet"} end, "option '--quiet' can not be used together with option '-v'")
assert.has_error(function()
parser:parse{"-qv"}
end, "option '-v' can not be used together with option '-q'")
assert.has_error(function()
parser:parse{"-v", "--quiet"}
end, "option '--quiet' can not be used together with option '-v'")
end)
it("handles multiple mutexes", function()
@@ -75,6 +79,8 @@ describe("tests related to mutexes", function()
local args = parser:parse{"install", "-l"}
assert.same({install = true, ["local"] = true}, args)
assert.has_error(function() parser:parse{"install", "-qlv"} end, "option '-v' can not be used together with option '-q'")
assert.has_error(function()
parser:parse{"install", "-qlv"}
end, "option '-v' can not be used together with option '-q'")
end)
end)