I have a function which gives the result of the multiplication of two big integers ( around 100 digits). How do I test to verify that the function is working correctly? Thank you.
Each big integer is represented by an array. Therefore, the multiplication code works on two arrays containing two big integers and spits out another array that contains the result. Now I need to test this function. I cannot generate test cases using built in data types.
More description: I have the following data structure
struct BigNumber
{
int bigNum[1000];
int numDigits;
};
I have written a function BigNumber Mult(BigNumber* first, BigNumber* second); This function gives me the result of first * second. The numbers first and second, can be upto 1000 digits long. Now I need to test the function to verify that it is working correctly.