Operators with std::string
[libacl.git] / test / integer_factorial.cpp
1 /*******************************************************
2  *  Unit test for the Integer class
3  *
4  * test several functions with a factorial calculation
5  ******************************************************
6  *
7  */
8
9 #include "Integer.h"
10 #include <assert.h>
11
12
13 void facttest(Integer& one, Integer& two);
14
15 int main()
16 {
17   Integer one = 1;
18   std::cout << "one = " << one << "\n";
19   assert(one.OK());
20   assert(one == 1);
21   std::cout << "one + 1 = " << (one + long(1)) << "\n";
22
23   Integer two = 2;
24   std::cout << "two = " << two << "\n";
25   assert(two.OK());
26   assert(two == 2);
27
28   facttest(one, two);
29   //anothertest();
30   //iotest();
31   //modtest();
32
33   std::cout << "\nEnd of test\n";
34 }