Skip to content

Instantly share code, notes, and snippets.

@hhirsch
Created December 29, 2018 18:34
Show Gist options
  • Save hhirsch/6d33f43810273e7401d61fd010a180d6 to your computer and use it in GitHub Desktop.
Save hhirsch/6d33f43810273e7401d61fd010a180d6 to your computer and use it in GitHub Desktop.
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