MCPcopy Create free account
hub / github.com/MariaDB/server / test_ds

Function test_ds

strings/decimal.c:2800–2813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2798}
2799
2800void test_ds(const char *s1, const char *s2, const char *orig, int ex)
2801{
2802 char s[100], *end;
2803 int res;
2804 snprintf(s, sizeof(s), "'%s' - '%s'", s1, s2);
2805 end= strend(s1);
2806 string2decimal(s1, &a, &end);
2807 end= strend(s2);
2808 string2decimal(s2, &b, &end);
2809 res=decimal_sub(&a, &b, &c);
2810 printf("%-40s => res=%d ", s, res);
2811 print_decimal(&c, orig, res, ex);
2812 printf("\n");
2813}
2814
2815void test_dc(const char *s1, const char *s2, int orig)
2816{

Callers 1

mainFunction · 0.85

Calls 3

strendFunction · 0.85
decimal_subFunction · 0.85
print_decimalFunction · 0.70

Tested by

no test coverage detected