mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Print \n instead of \r\n
This commit is contained in:
@@ -8,7 +8,7 @@ describe("tests related to tips", function()
|
||||
parser:option "-q" "--quiet"
|
||||
|
||||
assert.has_error(function() parser:parse{"--quiett=true"} end,
|
||||
"unknown option '--quiett'\r\nDid you mean '--quiet'?")
|
||||
"unknown option '--quiett'\nDid you mean '--quiet'?")
|
||||
end)
|
||||
|
||||
it("for commands", function()
|
||||
@@ -16,7 +16,7 @@ describe("tests related to tips", function()
|
||||
parser:command "install"
|
||||
|
||||
assert.has_error(function() parser:parse{"installq"} end,
|
||||
"unknown command 'installq'\r\nDid you mean 'install'?")
|
||||
"unknown command 'installq'\nDid you mean 'install'?")
|
||||
end)
|
||||
end)
|
||||
|
||||
@@ -26,7 +26,7 @@ describe("tests related to tips", function()
|
||||
parser:option "-q" "--quiet"
|
||||
|
||||
assert.has_error(function() parser:parse{"--quet=true"} end,
|
||||
"unknown option '--quet'\r\nDid you mean '--quiet'?")
|
||||
"unknown option '--quet'\nDid you mean '--quiet'?")
|
||||
end)
|
||||
|
||||
it("for commands", function()
|
||||
@@ -34,7 +34,7 @@ describe("tests related to tips", function()
|
||||
parser:command "install"
|
||||
|
||||
assert.has_error(function() parser:parse{"nstall"} end,
|
||||
"unknown command 'nstall'\r\nDid you mean 'install'?")
|
||||
"unknown command 'nstall'\nDid you mean 'install'?")
|
||||
end)
|
||||
end)
|
||||
|
||||
@@ -44,7 +44,7 @@ describe("tests related to tips", function()
|
||||
parser:option "-q" "--quiet"
|
||||
|
||||
assert.has_error(function() parser:parse{"--qriet=true"} end,
|
||||
"unknown option '--qriet'\r\nDid you mean '--quiet'?")
|
||||
"unknown option '--qriet'\nDid you mean '--quiet'?")
|
||||
end)
|
||||
|
||||
it("for commands", function()
|
||||
@@ -52,7 +52,7 @@ describe("tests related to tips", function()
|
||||
parser:command "install"
|
||||
|
||||
assert.has_error(function() parser:parse{"inntall"} end,
|
||||
"unknown command 'inntall'\r\nDid you mean 'install'?")
|
||||
"unknown command 'inntall'\nDid you mean 'install'?")
|
||||
end)
|
||||
end)
|
||||
|
||||
@@ -62,7 +62,7 @@ describe("tests related to tips", function()
|
||||
parser:option "-q" "--quiet"
|
||||
|
||||
assert.has_error(function() parser:parse{"--queit=true"} end,
|
||||
"unknown option '--queit'\r\nDid you mean '--quiet'?")
|
||||
"unknown option '--queit'\nDid you mean '--quiet'?")
|
||||
end)
|
||||
|
||||
it("for commands", function()
|
||||
@@ -70,7 +70,7 @@ describe("tests related to tips", function()
|
||||
parser:command "install"
|
||||
|
||||
assert.has_error(function() parser:parse{"isntall"} end,
|
||||
"unknown command 'isntall'\r\nDid you mean 'install'?")
|
||||
"unknown command 'isntall'\nDid you mean 'install'?")
|
||||
end)
|
||||
end)
|
||||
|
||||
@@ -81,7 +81,7 @@ describe("tests related to tips", function()
|
||||
parser:option "--quick"
|
||||
|
||||
assert.has_error(function() parser:parse{"--quiec=true"} end,
|
||||
"unknown option '--quiec'\r\nDid you mean one of these: '--quick' '--quiet'?")
|
||||
"unknown option '--quiec'\nDid you mean one of these: '--quick' '--quiet'?")
|
||||
end)
|
||||
|
||||
it("for commands", function()
|
||||
@@ -90,7 +90,7 @@ describe("tests related to tips", function()
|
||||
parser:command "instant"
|
||||
|
||||
assert.has_error(function() parser:parse{"instanl"} end,
|
||||
"unknown command 'instanl'\r\nDid you mean one of these: 'install' 'instant'?")
|
||||
"unknown command 'instanl'\nDid you mean one of these: 'install' 'instant'?")
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user