ps1.test
Class RatTermTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ps1.test.RatTermTest
All Implemented Interfaces:
Test

public final class RatTermTest
extends TestCase

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


Constructor Summary
RatTermTest(String name)
           
 
Method Summary
 boolean addDifferentExpts(RatTerm arg1, RatTerm arg2)
           
 boolean subDifferentExpts(RatTerm arg1, RatTerm arg2)
           
 void testAdd()
           
 void testAntiDifferentiate()
           
 void testCtor()
           
 void testCtorNaN()
           
 void testCtorZeroCoeff()
           
 void testDifferentExptArgs()
           
 void testDifferentiate()
           
 void testDiv()
           
 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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RatTermTest

public RatTermTest(String name)
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()

testDiv

public void testDiv()

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)

testDifferentiate

public void testDifferentiate()

testAntiDifferentiate

public void testAntiDifferentiate()