Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf11695

Browse files
committed
Update test_args.cpp
1 parent926f879 commitaf11695

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎buildcc/lib/args/test/test_args.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ TEST(ArgsTestGroup, Args_BasicParse) {
2121
int argc = av.size();
2222

2323
buildcc::Args::Init();
24+
buildcc::Args::Init();// Second init does nothing when already initialized
2425
buildcc::Args::Parse(argc, av.data());
2526

2627
STRCMP_EQUAL(buildcc::Args::GetProjectRootDir().string().c_str(),"root");
2728
STRCMP_EQUAL(buildcc::Args::GetProjectBuildDir().string().c_str(),"build");
2829
CHECK(buildcc::Args::GetLogLevel() == buildcc::env::LogLevel::Trace);
2930
CHECK_TRUE(buildcc::Args::Clean());
31+
buildcc::Args::Ref().name("new_name");
32+
STRCMP_EQUAL(buildcc::Args::Ref().get_name().c_str(),"new_name");
3033
}
3134

3235
TEST(ArgsTestGroup, Args_BasicExit) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp