spelling: daemon

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2022-05-05 21:33:25 -04:00
parent c3cbbb991c
commit 3e8f5151de
1 changed files with 6 additions and 6 deletions

View File

@ -95,33 +95,33 @@ TEST(GenericArgsParsingTests, parseGenericArgs_logFileCmdWithSpace_saveLogFilena
EXPECT_EQ(2, i); EXPECT_EQ(2, i);
} }
TEST(GenericArgsParsingTests, parseGenericArgs_noDeamonCmd_daemonFalse) TEST(GenericArgsParsingTests, parseGenericArgs_noDaemonCmd_daemonFalse)
{ {
int i = 1; int i = 1;
const int argc = 2; const int argc = 2;
const char* kNoDeamonCmd[argc] = { "stub", "-f" }; const char* kNoDaemonCmd[argc] = { "stub", "-f" };
ArgParser argParser(NULL); ArgParser argParser(NULL);
ArgsBase argsBase; ArgsBase argsBase;
argParser.setArgsBase(argsBase); argParser.setArgsBase(argsBase);
argParser.parseGenericArgs(argc, kNoDeamonCmd, i); argParser.parseGenericArgs(argc, kNoDaemonCmd, i);
EXPECT_FALSE(argsBase.m_daemon); EXPECT_FALSE(argsBase.m_daemon);
EXPECT_EQ(1, i); EXPECT_EQ(1, i);
} }
TEST(GenericArgsParsingTests, parseGenericArgs_deamonCmd_daemonTrue) TEST(GenericArgsParsingTests, parseGenericArgs_daemonCmd_daemonTrue)
{ {
int i = 1; int i = 1;
const int argc = 2; const int argc = 2;
const char* kDeamonCmd[argc] = { "stub", "--daemon" }; const char* kDaemonCmd[argc] = { "stub", "--daemon" };
ArgParser argParser(NULL); ArgParser argParser(NULL);
ArgsBase argsBase; ArgsBase argsBase;
argParser.setArgsBase(argsBase); argParser.setArgsBase(argsBase);
argParser.parseGenericArgs(argc, kDeamonCmd, i); argParser.parseGenericArgs(argc, kDaemonCmd, i);
EXPECT_EQ(true, argsBase.m_daemon); EXPECT_EQ(true, argsBase.m_daemon);
EXPECT_EQ(1, i); EXPECT_EQ(1, i);