diff --git a/tests/tokenizecmd.cpp b/tests/tokenizecmd.cpp index 02eb0e6..a87f098 100644 --- a/tests/tokenizecmd.cpp +++ b/tests/tokenizecmd.cpp @@ -5,8 +5,26 @@ #include "test.h" #include +#include #include +TEST(commandLine) +{ + const char* args[] = + { + "-s" + "--long", + }; + + bx::CommandLine cmdLine(BX_COUNTOF(args), args); + + CHECK(NULL != cmdLine.findOption("long") ); + CHECK(NULL != cmdLine.findOption('s') ); + + // non-existing argument + CHECK(NULL == cmdLine.findOption('x') ); +} + TEST(tokenizeCommandLine) { #if 0