From 7a9f8ce37ef3d5b02603da6a52b620f76c1ba929 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 2 Dec 2020 02:39:18 +0500 Subject: [PATCH] Improve tests for command line parser --- tests/test_cmdline.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/test_cmdline.c b/tests/test_cmdline.c index 9851b12..88ac269 100644 --- a/tests/test_cmdline.c +++ b/tests/test_cmdline.c @@ -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;