@@ -208,7 +208,6 @@ TEST_CASE("StringBased: Spaces", "[config]") {
208208 CHECK (output.at (1 ).inputs .at (0 ) == " four" );
209209}
210210
211-
212211TEST_CASE (" StringBased: Sections" , " [config]" ) {
213212 std::stringstream ofile;
214213
@@ -799,7 +798,6 @@ TEST_CASE_METHOD(TApp, "IniRequired", "[config]") {
799798 CHECK_THROWS_AS (run (), CLI::RequiredError);
800799}
801800
802-
803801TEST_CASE_METHOD (TApp, " IniInlineComment" , " [config]" ) {
804802
805803 TempFile tmpini{" TestIniTmp.ini" };
@@ -885,29 +883,27 @@ TEST_CASE_METHOD(TApp, "TomlInlineComment", "[config]") {
885883 CHECK_THROWS_AS (run (), CLI::RequiredError);
886884}
887885
888-
889886TEST_CASE_METHOD (TApp, " ConfigModifiers" , " [config]" ) {
890887
891-
892888 app.set_config (" --config" , " test.ini" , " " , true );
893889
894- auto cfgptr = app.get_config_formatter_base ();
890+ auto cfgptr = app.get_config_formatter_base ();
895891
896- cfgptr->section (" test" );
897- CHECK (cfgptr->section ()== " test" );
892+ cfgptr->section (" test" );
893+ CHECK (cfgptr->section () == " test" );
898894
899- CHECK (cfgptr->sectionRef () == " test" );
900- auto &sref = cfgptr->sectionRef ();
901- sref= " this" ;
902- CHECK (cfgptr->section () == " this" );
895+ CHECK (cfgptr->sectionRef () == " test" );
896+ auto &sref = cfgptr->sectionRef ();
897+ sref = " this" ;
898+ CHECK (cfgptr->section () == " this" );
903899
904900 cfgptr->index (5 );
905- CHECK (cfgptr->index () == 5 );
901+ CHECK (cfgptr->index () == 5 );
906902
907- CHECK (cfgptr->indexRef () == 5 );
908- auto &iref = cfgptr->indexRef ();
909- iref = 7 ;
910- CHECK (cfgptr->index () == 7 );
903+ CHECK (cfgptr->indexRef () == 5 );
904+ auto &iref = cfgptr->indexRef ();
905+ iref = 7 ;
906+ CHECK (cfgptr->index () == 7 );
911907}
912908
913909TEST_CASE_METHOD (TApp, " IniVector" , " [config]" ) {
@@ -1152,7 +1148,6 @@ TEST_CASE_METHOD(TApp, "IniLayeredDotSection", "[config]") {
11521148 app.get_config_formatter_base ()->maxLayers (1 );
11531149 run ();
11541150 CHECK (three == 0 );
1155-
11561151}
11571152
11581153TEST_CASE_METHOD (TApp, " IniLayeredCustomSectionSeparator" , " [config]" ) {
@@ -1265,27 +1260,26 @@ TEST_CASE_METHOD(TApp, "IniSubcommandConfigurablePreParse", "[config]") {
12651260
12661261TEST_CASE_METHOD (TApp, " IniSection" , " [config]" ) {
12671262
1268- TempFile tmpini{ " TestIniTmp.ini" };
1263+ TempFile tmpini{" TestIniTmp.ini" };
12691264
12701265 app.set_config (" --config" , tmpini);
12711266 app.get_config_formatter_base ()->section (" config" );
12721267
12731268 {
1274- std::ofstream out{ tmpini };
1269+ std::ofstream out{tmpini};
12751270 out << " [config]" << std::endl;
12761271 out << " val=2" << std::endl;
12771272 out << " subsubcom.val=3" << std::endl;
12781273 out << " [default]" << std::endl;
12791274 out << " val=1" << std::endl;
12801275 }
12811276
1282- int val{ 0 };
1277+ int val{0 };
12831278 app.add_option (" --val" , val);
12841279
12851280 run ();
12861281
1287- CHECK (2 ==val);
1288-
1282+ CHECK (2 == val);
12891283}
12901284
12911285TEST_CASE_METHOD (TApp, " IniSection2" , " [config]" ) {
@@ -1372,23 +1366,22 @@ TEST_CASE_METHOD(TApp, "TomlSectionNumber", "[config]") {
13721366
13731367 CHECK (2 == val);
13741368
1375- auto &index= app.get_config_formatter_base ()->indexRef ();
1369+ auto &index = app.get_config_formatter_base ()->indexRef ();
13761370 index = 1 ;
13771371 run ();
13781372
13791373 CHECK (4 == val);
13801374
13811375 index = -1 ;
13821376 run ();
1383- // Take the first section in this case
1377+ // Take the first section in this case
13841378 CHECK (2 == val);
13851379 index = 2 ;
13861380 run ();
13871381
13881382 CHECK (6 == val);
13891383}
13901384
1391-
13921385TEST_CASE_METHOD (TApp, " IniSubcommandConfigurableParseComplete" , " [config]" ) {
13931386
13941387 TempFile tmpini{" TestIniTmp.ini" };
0 commit comments