| 2798 | } |
| 2799 | |
| 2800 | void 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 | |
| 2815 | void test_dc(const char *s1, const char *s2, int orig) |
| 2816 | { |
no test coverage detected