ps1.ratpoly
Class RatPolyTest
java.lang.Object
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.
RatPolyTest
public RatPolyTest()
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()