mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-13 11:04:27 -05:00
Improve tests for command line parser
This commit is contained in:
parent
7c6364af54
commit
7a9f8ce37e
1 changed files with 0 additions and 11 deletions
|
@ -28,27 +28,16 @@ static const char *const argv_foo_bar_car[] = {"foo", "bar", "car"};
|
|||
int main()
|
||||
{
|
||||
test("", 0, 0, KERNAUX_TRUE, "", 0, argv0);
|
||||
|
||||
test(" ", 0, 0, KERNAUX_TRUE, "", 0, argv0);
|
||||
|
||||
test("foo", 0, 0, KERNAUX_TRUE, "", 1, argv_foo);
|
||||
|
||||
test("foo bar", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test(" foo bar", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test("foo bar ", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test(" foo bar ", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test("foo bar", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test(" foo bar", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test("foo bar ", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test(" foo bar ", 0, 0, KERNAUX_TRUE, "", 2, argv_foo_bar);
|
||||
|
||||
test("foo bar car", 0, 0, KERNAUX_TRUE, "", 3, argv_foo_bar_car);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue