ps1.ratpoly
Class RatPolyTest

java.lang.Object
  extended by ps1.ratpoly.RatPolyTest

public final class RatPolyTest
extends Object

This class contains a set of test cases that can be used to test the implementation of the RatPoly class.


Constructor Summary
RatPolyTest()
           
 
Method Summary
 void testAdd()
           
 void testDegree()
           
 void testEval()
           
 void testGetTerm()
           
 void testImmutabilityOfOperations()
           
 void testIsNaN()
           
 void testMul()
           
 void testNoArgCtor()
           
 void testOpsWithNaN()
           
 void testOpsWithNaN(RatPoly p)
           
 void testSub()
           
 void testToStringLeadingConstants()
           
 void testToStringLeadingNeg()
           
 void testToStringMultTerms()
           
 void testToStringNaN()
           
 void testToStringRationals()
           
 void testToStringSimple()
           
 void testTwoArgCtor()
           
 void testValueOfLeadingConstants()
           
 void testValueOfLeadingNeg()
           
 void testValueOfMultTerms()
           
 void testValueOfNaN()
           
 void testValueOfRationals()
           
 void testValueOfSimple()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatPolyTest

public RatPolyTest()
Method Detail

testNoArgCtor

public void testNoArgCtor()

testTwoArgCtor

public void testTwoArgCtor()

testIsNaN

public void testIsNaN()

testValueOfSimple

public void testValueOfSimple()

testValueOfMultTerms

public void testValueOfMultTerms()

testValueOfLeadingNeg

public void testValueOfLeadingNeg()

testValueOfLeadingConstants

public void testValueOfLeadingConstants()

testValueOfRationals

public void testValueOfRationals()

testValueOfNaN

public void testValueOfNaN()

testToStringSimple

public void testToStringSimple()

testToStringMultTerms

public void testToStringMultTerms()

testToStringLeadingNeg

public void testToStringLeadingNeg()

testToStringLeadingConstants

public void testToStringLeadingConstants()

testToStringRationals

public void testToStringRationals()

testToStringNaN

public void testToStringNaN()

testDegree

public void testDegree()

testAdd

public void testAdd()

testSub

public void testSub()

testMul

public void testMul()

testOpsWithNaN

public void testOpsWithNaN(RatPoly p)

testOpsWithNaN

public void testOpsWithNaN()

testImmutabilityOfOperations

public void testImmutabilityOfOperations()

testEval

public void testEval()

testGetTerm

public void testGetTerm()