@@ -69,10 +69,10 @@ FOSSIL_TEST_CASE(cpp_add_command) {
6969FOSSIL_TEST_CASE (cpp_add_argument) {
7070 fossil_io_parser_palette_t *palette = fossil_io_parser_create_palette (" test_palette" , " Test Description" );
7171 fossil_io_parser_command_t *command = fossil_io_parser_add_command (palette, " test_command" , " Test Command Description" );
72- fossil_io_parser_argument_t *argument = fossil_io_parser_add_argument (command, " test_arg" , FOSSIL_io_PARSER_STRING , NULL , 0 );
72+ fossil_io_parser_argument_t *argument = fossil_io_parser_add_argument (command, " test_arg" , FOSSIL_IO_PARSER_STRING , NULL , 0 );
7373 FOSSIL_TEST_ASSUME (argument != NULL , " Argument should be added" );
7474 FOSSIL_TEST_ASSUME (strcmp (argument->name , " test_arg" ) == 0 , " Argument name should be 'test_arg'" );
75- FOSSIL_TEST_ASSUME (argument->type == FOSSIL_io_PARSER_STRING , " Argument type should be STRING" );
75+ FOSSIL_TEST_ASSUME (argument->type == FOSSIL_IO_PARSER_STRING , " Argument type should be STRING" );
7676 FOSSIL_TEST_ASSUME (argument->value == NULL , " Argument value should be NULL" );
7777 FOSSIL_TEST_ASSUME (command->arguments == argument, " Command arguments should include the new argument" );
7878 fossil_io_parser_free (palette);
@@ -81,7 +81,7 @@ FOSSIL_TEST_CASE(cpp_add_argument) {
8181FOSSIL_TEST_CASE (cpp_parse_command) {
8282 fossil_io_parser_palette_t *palette = fossil_io_parser_create_palette (" test_palette" , " Test Description" );
8383 fossil_io_parser_command_t *command = fossil_io_parser_add_command (palette, " test_command" , " Test Command Description" );
84- fossil_io_parser_add_argument (command, " test_arg" , FOSSIL_io_PARSER_STRING , NULL , 0 );
84+ fossil_io_parser_add_argument (command, " test_arg" , FOSSIL_IO_PARSER_STRING , NULL , 0 );
8585
8686 std::vector<std::string> argv = {" program" , " test_command" , " test_arg" , " test_value" };
8787 std::vector<const char *> argv_cstr;
@@ -129,10 +129,10 @@ FOSSIL_TEST_CASE(cpp_wrapper_add_argument) {
129129 fossil::io::Parser parser;
130130 fossil_io_parser_palette_t *palette = parser.create_palette (" wrapper_palette" , " Wrapper Test Description" );
131131 fossil_io_parser_command_t *command = parser.add_command (palette, " wrapper_command" , " Wrapper Command Description" );
132- fossil_io_parser_argument_t *argument = parser.add_argument (command, " wrapper_arg" , FOSSIL_io_PARSER_STRING , NULL , 0 );
132+ fossil_io_parser_argument_t *argument = parser.add_argument (command, " wrapper_arg" , FOSSIL_IO_PARSER_STRING , NULL , 0 );
133133 FOSSIL_TEST_ASSUME (argument != NULL , " Argument should be added" );
134134 FOSSIL_TEST_ASSUME (strcmp (argument->name , " wrapper_arg" ) == 0 , " Argument name should be 'wrapper_arg'" );
135- FOSSIL_TEST_ASSUME (argument->type == FOSSIL_io_PARSER_STRING , " Argument type should be STRING" );
135+ FOSSIL_TEST_ASSUME (argument->type == FOSSIL_IO_PARSER_STRING , " Argument type should be STRING" );
136136 FOSSIL_TEST_ASSUME (argument->value == NULL , " Argument value should be NULL" );
137137 FOSSIL_TEST_ASSUME (command->arguments == argument, " Command arguments should include the new argument" );
138138 parser.free (palette);
@@ -142,7 +142,7 @@ FOSSIL_TEST_CASE(cpp_wrapper_parse_command) {
142142 fossil::io::Parser parser;
143143 fossil_io_parser_palette_t *palette = parser.create_palette (" wrapper_palette" , " Wrapper Test Description" );
144144 fossil_io_parser_command_t *command = parser.add_command (palette, " wrapper_command" , " Wrapper Command Description" );
145- parser.add_argument (command, " wrapper_arg" , FOSSIL_io_PARSER_STRING , NULL , 0 );
145+ parser.add_argument (command, " wrapper_arg" , FOSSIL_IO_PARSER_STRING , NULL , 0 );
146146
147147 std::vector<std::string> argv = {" program" , " wrapper_command" , " wrapper_arg" , " wrapper_value" };
148148 std::vector<const char *> argv_cstr;
0 commit comments