| 2783 | } |
| 2784 | |
| 2785 | void test_da(const char *s1, const char *s2, const char *orig, int ex) |
| 2786 | { |
| 2787 | char s[100], *end; |
| 2788 | int res; |
| 2789 | snprintf(s, sizeof(s), "'%s' + '%s'", s1, s2); |
| 2790 | end= strend(s1); |
| 2791 | string2decimal(s1, &a, &end); |
| 2792 | end= strend(s2); |
| 2793 | string2decimal(s2, &b, &end); |
| 2794 | res=decimal_add(&a, &b, &c); |
| 2795 | printf("%-40s => res=%d ", s, res); |
| 2796 | print_decimal(&c, orig, res, ex); |
| 2797 | printf("\n"); |
| 2798 | } |
| 2799 | |
| 2800 | void test_ds(const char *s1, const char *s2, const char *orig, int ex) |
| 2801 | { |
no test coverage detected