@@ -111,10 +111,11 @@ TYPED_TEST(OptSubCommandTableTest, SubCommandParsing) {
111111 EXPECT_EQ (SC, " foo" );
112112 EXPECT_TRUE (AL.hasArg (OPT_uppercase));
113113 EXPECT_FALSE (AL.hasArg (OPT_lowercase));
114- EXPECT_FALSE (AL.hasArg (OPT_version));
115- EXPECT_EQ (std::string::npos, ErrMsg.find (" Multiple subcommands passed" )) << " Did not expect error message as this is a valid use case." ;
116- EXPECT_EQ (std::string::npos,
117- ErrMsg.find (" Unregistered positionals passed" )) << " Did not expect error message as this is a valid use case." ;
114+ EXPECT_FALSE (AL.hasArg (OPT_version));
115+ EXPECT_EQ (std::string::npos, ErrMsg.find (" Multiple subcommands passed" ))
116+ << " Did not expect error message as this is a valid use case." ;
117+ EXPECT_EQ (std::string::npos, ErrMsg.find (" Unregistered positionals passed" ))
118+ << " Did not expect error message as this is a valid use case." ;
118119 }
119120
120121 {
@@ -127,10 +128,11 @@ TYPED_TEST(OptSubCommandTableTest, SubCommandParsing) {
127128 EXPECT_EQ (SC, " foo" );
128129 EXPECT_TRUE (AL.hasArg (OPT_uppercase));
129130 EXPECT_FALSE (AL.hasArg (OPT_lowercase));
130- EXPECT_FALSE (AL.hasArg (OPT_version));
131- EXPECT_EQ (std::string::npos, ErrMsg.find (" Multiple subcommands passed" )) << " Did not expect error message as this is a valid use case." ;
132- EXPECT_EQ (std::string::npos,
133- ErrMsg.find (" Unregistered positionals passed" )) << " Did not expect error message as this is a valid use case." ;
131+ EXPECT_FALSE (AL.hasArg (OPT_version));
132+ EXPECT_EQ (std::string::npos, ErrMsg.find (" Multiple subcommands passed" ))
133+ << " Did not expect error message as this is a valid use case." ;
134+ EXPECT_EQ (std::string::npos, ErrMsg.find (" Unregistered positionals passed" ))
135+ << " Did not expect error message as this is a valid use case." ;
134136 }
135137
136138 {
@@ -145,8 +147,8 @@ TYPED_TEST(OptSubCommandTableTest, SubCommandParsing) {
145147 EXPECT_NE (std::string::npos, ErrMsg.find (" Multiple subcommands passed" ));
146148 EXPECT_NE (std::string::npos, ErrMsg.find (" foo" ));
147149 EXPECT_NE (std::string::npos, ErrMsg.find (" bar" ));
148- EXPECT_EQ (std::string::npos,
149- ErrMsg. find ( " Unregistered positionals passed " )) << " Did not expect error message as this is a valid use case." ;
150+ EXPECT_EQ (std::string::npos, ErrMsg. find ( " Unregistered positionals passed " ))
151+ << " Did not expect error message as this is a valid use case." ;
150152 }
151153
152154 {
0 commit comments