mirror of
https://github.com/tailix/libkernaux.git
synced 2025-03-31 17:25:22 -04:00
Add more tests for command line parser
This commit is contained in:
parent
2707c56c27
commit
93e764c1b8
1 changed files with 3 additions and 1 deletions
|
@ -41,8 +41,10 @@ int main()
|
|||
test(" foo bar ", 0, 0, true, "", 2, argv_foo_bar);
|
||||
test("foo bar car", 0, 0, true, "", 3, argv_foo_bar_car);
|
||||
|
||||
test("foo bar car", 3, 4, true, "", 3, argv_foo_bar_car);
|
||||
|
||||
test("foo bar car", 2, 0, false, "too many args", 0, argv0);
|
||||
test("foo bar car", 0, 2, false, "arg too long", 0, argv0);
|
||||
test("foo bar car", 0, 3, false, "arg too long", 0, argv0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue