Terrible hacky SolveCubic.
[ipdf/code.git] / src / tests / arbrationals.cpp
1 /**
2  * @file arbrationals.cpp
3  * @brief Tests Rational<Arbint>
4  */
5  
6 #include "rational.h"
7 #include "arbint.h"
8
9 #define TEST_CASES 100
10
11 using namespace std;
12 using namespace IPDF;
13
14 #include "rect.h"
15
16 int main(int argc, char ** argv)
17 {
18
19         Rational<Arbint> a(1, 2);
20         Rational<Arbint> b(3, 9);
21         Rational<Arbint> c(b);
22         
23         Rational<Arbint> d(c);
24         c *= a;
25         Debug("%s * %s = %s", d.Str().c_str(), a.Str().c_str(), c.Str().c_str());
26         return 0;
27
28 }

UCC git Repository :: git.ucc.asn.au