Fix a warning/compile error.
[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         Rect rect(0,0,1,1);
20         return 0;
21         for (unsigned i = 0; i < TEST_CASES; ++i)
22         {
23                 double d = (double)(rand()) / (double)(rand());
24                 Rational<Arbint> r(d);
25                 Debug("%f -> %s -> %s/%s", d, r.Str().c_str(), r.P.DigitStr().c_str(), r.Q.DigitStr().c_str());
26                 
27                 
28                 
29         }
30         printf("Tests done");
31 }

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