public void testCreateRational() throws Exception
{
Rational rational = new Rational(1, 3);
assertEquals(1, rational.getNumerator());
assertEquals(3, rational.getDenominator());
assertEquals(new Double(1d / 3d), new Double(rational.doubleValue()));
}
public void testToString() throws Exception
{
Rational rational = new Rational(1, 3);