Created
December 29, 2018 18:34
-
-
Save hhirsch/6d33f43810273e7401d61fd010a180d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST_CASE_METHOD(ArgumentsFixtures, "Parameter extraction working", "[arguments]") { | |
/* SECTION("Get Data Path") { | |
radix::Arguments arguments = Arguments(argumentCount, argumentVector); | |
REQUIRE(arguments.getDataPath() == "/tmp"); | |
}*/ | |
SECTION("Determine executable name") { | |
const char* argumentVector[] = { "param0", "param1", "param2" }; | |
radix::Arguments arguments = Arguments(argumentCount, const_cast<char**>(argumentVector)); | |
REQUIRE(arguments.getExecutableName() == "executableName"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment