mirror of
https://github.com/ilyakooo0/optparse-applicative.git
synced 2024-11-27 11:56:20 +03:00
Add regression test for #16.
This commit is contained in:
parent
97f70ea98b
commit
b8841a5abc
@ -130,5 +130,15 @@ case_nested_commands = do
|
||||
i = info (p1 <**> helper) idm
|
||||
checkHelpText "nested" i ["c", "b"]
|
||||
|
||||
case_many_args :: Assertion
|
||||
case_many_args = do
|
||||
let p = arguments str idm
|
||||
i = info p idm
|
||||
nargs = 20000
|
||||
result = run i (replicate nargs "foo")
|
||||
case result of
|
||||
Left _ -> assertFailure "unexpected parse error"
|
||||
Right xs -> nargs @=? length xs
|
||||
|
||||
main :: IO ()
|
||||
main = $(defaultMainGenerator)
|
||||
|
Loading…
Reference in New Issue
Block a user