1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-10-30 11:54:01 -04:00

Add more tests for command line parser

This commit is contained in:
Alex Kotov 2020-12-06 03:34:57 +05:00
parent b2c10342f2
commit 74164a4623
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -134,6 +134,12 @@ int main()
test("\\ \\ \\ \\ \\ \\ \\ \\ \\ ", 2, 3, false, "arg too long", 0, argv0);
test("\\\\\\\\\\\\ \\\\\\\\\\\\ \\\\\\\\\\\\", 2, 3, false, "arg too long", 0, argv0);
test("\\", 0, 0, false, "EOL after backslash", 0, argv0);
test(" \\", 0, 0, false, "EOL after backslash", 0, argv0);
test("\\ \\", 0, 0, false, "EOL after backslash", 0, argv0);
test("\\\\\\", 0, 0, false, "EOL after backslash", 0, argv0);
test("foo\\", 0, 0, false, "EOL after backslash", 0, argv0);
return 0;
}