{
static i;
do {
if (GetNumberOfDigits(i) != num)
printf("Error: %d -> %d", i
, GetNumberOfDigits
(i
)); if (i == cellmax)
break;
} while (i
!= cellmax && ++i
<= max); }
main()
{
Test(cellmin, -1000000000, 10);
Test(-999999999, -100000000, 9);
Test(-99999999, -10000000, 8);
Test(-9999999, -1000000, 7);
Test(-999999, -100000, 6);
Test(-99999, -10000, 5);
Test(-9999, -1000, 4);
Test(-999, -100, 3);
Test(-99, -10, 2);
Test(-9, 9, 1);
Test(10, 99, 2);
Test(100, 999, 3);
Test(1000, 9999, 4);
Test(10000, 99999, 5);
Test(100000, 999999, 6);
Test(1000000, 9999999, 7);
Test(10000000, 99999999, 8);
Test(100000000, 999999999, 9);
Test(1000000000, cellmax, 10);
}