1- #include " runcpp2/Data/DependencyCommands .hpp"
1+ #include " runcpp2/Data/ProfilesCommands .hpp"
22#include " ssTest.hpp"
33#include " runcpp2/YamlLib.hpp"
44#include " runcpp2/runcpp2.hpp"
@@ -9,7 +9,7 @@ int main(int argc, char** argv)
99
1010 ssTEST_INIT_TEST_GROUP ();
1111
12- ssTEST (" DependencyCommands Should Parse Valid YAML" )
12+ ssTEST (" ProfilesCommands Should Parse Valid YAML" )
1313 {
1414 ssTEST_OUTPUT_SETUP
1515 (
@@ -27,40 +27,40 @@ int main(int argc, char** argv)
2727 ryml::Tree tree = ryml::parse_in_arena (c4::to_csubstr (yamlStr));
2828 ryml::ConstNodeRef root = tree.rootref ();
2929
30- runcpp2::Data::DependencyCommands dependencyCommands ;
30+ runcpp2::Data::ProfilesCommands profilesCommands ;
3131 );
3232
3333 ssTEST_OUTPUT_EXECUTION
3434 (
3535 ryml::ConstNodeRef nodeRef = root;
36- bool parseResult = dependencyCommands .ParseYAML_Node (nodeRef);
36+ bool parseResult = profilesCommands .ParseYAML_Node (nodeRef);
3737 );
3838
3939 ssTEST_OUTPUT_ASSERT (" ParseYAML_Node should succeed" , parseResult);
4040
4141 // Verify parsed values
4242 ssTEST_OUTPUT_ASSERT ( " MSVC commands count" ,
43- dependencyCommands .CommandSteps .at (" MSVC" ).size () == 3 );
43+ profilesCommands .CommandSteps .at (" MSVC" ).size () == 3 );
4444 ssTEST_OUTPUT_ASSERT ( " GCC commands count" ,
45- dependencyCommands .CommandSteps .at (" GCC" ).size () == 3 );
45+ profilesCommands .CommandSteps .at (" GCC" ).size () == 3 );
4646 ssTEST_OUTPUT_ASSERT ( " MSVC first command" ,
47- dependencyCommands .CommandSteps .at (" MSVC" ).at (0 ) == " mkdir build" );
47+ profilesCommands .CommandSteps .at (" MSVC" ).at (0 ) == " mkdir build" );
4848 ssTEST_OUTPUT_ASSERT ( " GCC last command" ,
49- dependencyCommands .CommandSteps .at (" GCC" ).at (2 ) == " make install" );
49+ profilesCommands .CommandSteps .at (" GCC" ).at (2 ) == " make install" );
5050
5151 // Test ToString() and Equals()
5252 ssTEST_OUTPUT_EXECUTION
5353 (
54- std::string yamlOutput = dependencyCommands .ToString (" " );
54+ std::string yamlOutput = profilesCommands .ToString (" " );
5555 ryml::Tree outputTree = ryml::parse_in_arena (ryml::to_csubstr (yamlOutput));
5656
57- runcpp2::Data::DependencyCommands parsedOutput;
57+ runcpp2::Data::ProfilesCommands parsedOutput;
5858 nodeRef = outputTree.rootref ();
5959 parsedOutput.ParseYAML_Node (nodeRef);
6060 );
6161
6262 ssTEST_OUTPUT_ASSERT ( " Parsed output should equal original" ,
63- dependencyCommands .Equals (parsedOutput));
63+ profilesCommands .Equals (parsedOutput));
6464 };
6565
6666 ssTEST_END_TEST_GROUP ();
0 commit comments