Skip to content

Commit 46e35b4

Browse files
update test cases
1 parent 022c7c8 commit 46e35b4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

code/tests/cases/test_parser.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515
#include <fossil/pizza/framework.h>
1616
#include <fossil/io/framework.h>
17+
#include <math.h>
1718

1819

1920
// * * * * * * * * * * * * * * * * * * * * * * * *

code/tests/cases/test_parser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ FOSSIL_TEST(cpp_add_command_null_inputs) {
210210
fossil_io_parser_palette_t *palette = parser.create_palette("test_palette", "Test Description");
211211
FOSSIL_TEST_ASSUME(palette != NULL, "Palette should be created successfully");
212212

213-
fossil_io_parser_command_t *command1 = fossil_io_parser_add_command(palette, NULL, "tc", "Test Command Description");
213+
fossil_io_parser_command_t *command1 = parser.add_command(palette, NULL, "tc", "Test Command Description");
214214
FOSSIL_TEST_ASSUME(command1 == NULL, "Command should not be added with NULL name");
215215

216-
fossil_io_parser_command_t *command2 = fossil_io_parser_add_command(palette, "test_command", "tc", NULL);
216+
fossil_io_parser_command_t *command2 = parser.add_command(palette, "test_command", "tc", NULL);
217217
FOSSIL_TEST_ASSUME(command2 == NULL, "Command should not be added with NULL description");
218218

219-
fossil_io_parser_command_t *command3 = fossil_io_parser_add_command(NULL, "test_command", "tc", "Test Description");
219+
fossil_io_parser_command_t *command3 = parser.add_command(NULL, "test_command", "tc", "Test Description");
220220
FOSSIL_TEST_ASSUME(command3 == NULL, "Command should not be added to NULL palette");
221221

222222
parser.free(palette);

0 commit comments

Comments
 (0)