* Re-enabled some tests
[biginteger-lo27.git] / test.c
blob3dc95a12dc1820bba118c3841a39bdac5b553e63
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "biginteger.h"
6 int main(int argc, char* argv[])
8 if (argc < 2) {
9 puts("Bad arguments");
10 return EXIT_FAILURE;
13 BigInteger b = newBigInteger(argv[1]);
14 BigInteger b2 = newBigInteger(argv[2]);
16 printBigInteger(b);
18 printf("Comparing to itself : %d\n", compareBigInt(b, b));
20 printf("Comparing to second : %d\n", compareBigInt(b, b2));
22 printf("Adding the two together : ");
23 printBigInteger(sumBigInt(b, b2));
24 printf("Diff the two :");
25 printBigInteger(diffBigInt(b, b2));
27 return EXIT_SUCCESS;