ps1.ratpoly
Class RatTermTest

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

public final class RatTermTest
extends Object

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


Constructor Summary
RatTermTest()
           
 
Method Summary
 boolean addDifferentExpts(RatTerm arg1, RatTerm arg2)
           
 boolean subDifferentExpts(RatTerm arg1, RatTerm arg2)
           
 void testAdd()
           
 void testCtor()
           
 void testCtorNaN()
           
 void testCtorZeroCoeff()
           
 void testDifferentExptArgs()
           
 void testEquals()
           
 void testEqualsNaNCoeff()
           
 void testEqualsZeroCoeff()
           
 void testEval()
           
 void testGetCoeff()
           
 void testGetExpt()
           
 void testIsNaN()
           
 void testIsZero()
           
 void testMul()
           
 void testOperationsOnNaN()
           
 void testOperationsOnZero()
           
 void testSub()
           
 void testToStringConst()
           
 void testToStringFull()
           
 void testToStringLeadingCoeff()
           
 void testToStringNaN()
           
 void testToStringPow()
           
 void testToStringSimple()
           
 void testToStringZero()
           
 void testValueOfConst()
           
 void testValueOfFull()
           
 void testValueOfLeadingCoeff()
           
 void testValueOfNaN()
           
 void testValueOfPow()
           
 void testValueOfSimple()
           
 void testValueOfZero()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatTermTest

public RatTermTest()
Method Detail

testCtor

public void testCtor()

testCtorZeroCoeff

public void testCtorZeroCoeff()

testCtorNaN

public void testCtorNaN()

testGetCoeff

public void testGetCoeff()

testGetExpt

public void testGetExpt()

testIsNaN

public void testIsNaN()

testIsZero

public void testIsZero()

testEval

public void testEval()

testEquals

public void testEquals()

testEqualsZeroCoeff

public void testEqualsZeroCoeff()

testEqualsNaNCoeff

public void testEqualsNaNCoeff()

testValueOfSimple

public void testValueOfSimple()

testValueOfConst

public void testValueOfConst()

testValueOfLeadingCoeff

public void testValueOfLeadingCoeff()

testValueOfPow

public void testValueOfPow()

testValueOfFull

public void testValueOfFull()

testValueOfNaN

public void testValueOfNaN()

testValueOfZero

public void testValueOfZero()

testToStringSimple

public void testToStringSimple()

testToStringConst

public void testToStringConst()

testToStringLeadingCoeff

public void testToStringLeadingCoeff()

testToStringPow

public void testToStringPow()

testToStringFull

public void testToStringFull()

testToStringNaN

public void testToStringNaN()

testToStringZero

public void testToStringZero()

testAdd

public void testAdd()

testSub

public void testSub()

testMul

public void testMul()

testOperationsOnNaN

public void testOperationsOnNaN()

testOperationsOnZero

public void testOperationsOnZero()

testDifferentExptArgs

public void testDifferentExptArgs()

addDifferentExpts

public boolean addDifferentExpts(RatTerm arg1,
                                 RatTerm arg2)

subDifferentExpts

public boolean subDifferentExpts(RatTerm arg1,
                                 RatTerm arg2)