We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent926f879 commitaf11695Copy full SHA for af11695
buildcc/lib/args/test/test_args.cpp
@@ -21,12 +21,15 @@ TEST(ArgsTestGroup, Args_BasicParse) {
21
int argc = av.size();
22
23
buildcc::Args::Init();
24
+buildcc::Args::Init();// Second init does nothing when already initialized
25
buildcc::Args::Parse(argc, av.data());
26
27
STRCMP_EQUAL(buildcc::Args::GetProjectRootDir().string().c_str(),"root");
28
STRCMP_EQUAL(buildcc::Args::GetProjectBuildDir().string().c_str(),"build");
29
CHECK(buildcc::Args::GetLogLevel() == buildcc::env::LogLevel::Trace);
30
CHECK_TRUE(buildcc::Args::Clean());
31
+buildcc::Args::Ref().name("new_name");
32
+STRCMP_EQUAL(buildcc::Args::Ref().get_name().c_str(),"new_name");
33
}
34
35
TEST(ArgsTestGroup, Args_BasicExit) {