Made the arrangements for the mentioned changes in the last commit, for now just integers but IT WILL be capable of handling doubles as fractions

This commit is contained in:
2026-03-09 09:23:06 -06:00
parent 771069455d
commit afae8fbe3a
4 changed files with 22 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ static void test_string_to_number(void **state) {
char num[16] = "2333t55";
size_t offset = 0;
double result = 0;
int64_t result = 0;
assert_int_equal(string_to_number(num, &offset, &result), 0);
assert_int_equal(offset, 4);