@@ -69,10 +69,10 @@ FOSSIL_TEST_CASE(cpp_add_command) {
69
69
FOSSIL_TEST_CASE (cpp_add_argument) {
70
70
fossil_io_parser_palette_t *palette = fossil_io_parser_create_palette (" test_palette" , " Test Description" );
71
71
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 );
73
73
FOSSIL_TEST_ASSUME (argument != NULL , " Argument should be added" );
74
74
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" );
76
76
FOSSIL_TEST_ASSUME (argument->value == NULL , " Argument value should be NULL" );
77
77
FOSSIL_TEST_ASSUME (command->arguments == argument, " Command arguments should include the new argument" );
78
78
fossil_io_parser_free (palette);
@@ -81,7 +81,7 @@ FOSSIL_TEST_CASE(cpp_add_argument) {
81
81
FOSSIL_TEST_CASE (cpp_parse_command) {
82
82
fossil_io_parser_palette_t *palette = fossil_io_parser_create_palette (" test_palette" , " Test Description" );
83
83
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 );
85
85
86
86
std::vector<std::string> argv = {" program" , " test_command" , " test_arg" , " test_value" };
87
87
std::vector<const char *> argv_cstr;
@@ -129,10 +129,10 @@ FOSSIL_TEST_CASE(cpp_wrapper_add_argument) {
129
129
fossil::io::Parser parser;
130
130
fossil_io_parser_palette_t *palette = parser.create_palette (" wrapper_palette" , " Wrapper Test Description" );
131
131
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 );
133
133
FOSSIL_TEST_ASSUME (argument != NULL , " Argument should be added" );
134
134
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" );
136
136
FOSSIL_TEST_ASSUME (argument->value == NULL , " Argument value should be NULL" );
137
137
FOSSIL_TEST_ASSUME (command->arguments == argument, " Command arguments should include the new argument" );
138
138
parser.free (palette);
@@ -142,7 +142,7 @@ FOSSIL_TEST_CASE(cpp_wrapper_parse_command) {
142
142
fossil::io::Parser parser;
143
143
fossil_io_parser_palette_t *palette = parser.create_palette (" wrapper_palette" , " Wrapper Test Description" );
144
144
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 );
146
146
147
147
std::vector<std::string> argv = {" program" , " wrapper_command" , " wrapper_arg" , " wrapper_value" };
148
148
std::vector<const char *> argv_cstr;
0 commit comments