edu.jas.arith
Class ArithTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.jas.arith.ArithTest
All Implemented Interfaces:
junit.framework.Test

public class ArithTest
extends junit.framework.TestCase

Basic arithmetic tests with JUnit.

Author:
Heinz Kredel.

Constructor Summary
ArithTest(java.lang.String name)
          Constructs a ArithTest object.
 
Method Summary
static void main(java.lang.String[] args)
          main.
protected  void setUp()
           
static junit.framework.Test suite()
          suite.
protected  void tearDown()
           
 void testCombinatoric()
          Test Combinatoric.
 void testComplexAddition()
          Test addition for Complex.
 void testComplexConstants()
          Test static initialization and constants for BigComplex.
 void testComplexConstructor()
          Test string constructor and toString for BigComplex.
 void testComplexMultiplication()
          Test multiplication for Complex.
 void testComplexRandom()
          Test random and compares Complex.
 void testIntegerAddition()
          Test addition for Integer.
 void testIntegerConstants()
          Test static initialization and constants for BigInteger.
 void testIntegerConstructor()
          Test string constructor and toString for BigInteger.
 void testIntegerMultiplication()
          Test multiplication for Integer.
 void testIntegerPower()
          Test power for Integer.
 void testIntegerRandom()
          Test random and compares Integer.
 void testQuaternionAddition()
          Test addition for Quaternion.
 void testQuaternionConstants()
          Test static initialization and constants for BigQuaternion.
 void testQuaternionConstructor()
          Test string constructor and toString for BigQuaternion.
 void testQuaternionMultiplication()
          Test multiplication for Quaternion.
 void testQuaternionRandom()
          Test random and compares Quaternion.
 void testRationalAddition()
          Test addition for Rational.
 void testRationalConstants()
          Test static initialization and constants for BigRational.
 void testRationalConstructor()
          Test string constructor and toString for BigRational.
 void testRationalMultiplication()
          Test multiplication for Rational.
 void testRationalPower()
          Test power for Rational.
 void testRationalRandom()
          Test random and compares Rational.
 void testRoot()
          Test root.
 void testRootDecimal()
          Test root decimal.
 void testSquareRoot()
          Test square root.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

ArithTest

public ArithTest(java.lang.String name)
Constructs a ArithTest object.

Parameters:
name - String.
Method Detail

main

public static void main(java.lang.String[] args)
main.


suite

public static junit.framework.Test suite()
suite.


setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testIntegerConstants

public void testIntegerConstants()
Test static initialization and constants for BigInteger.


testIntegerConstructor

public void testIntegerConstructor()
Test string constructor and toString for BigInteger.


testIntegerRandom

public void testIntegerRandom()
Test random and compares Integer.


testIntegerAddition

public void testIntegerAddition()
Test addition for Integer.


testIntegerMultiplication

public void testIntegerMultiplication()
Test multiplication for Integer.


testRationalConstants

public void testRationalConstants()
Test static initialization and constants for BigRational.


testComplexConstants

public void testComplexConstants()
Test static initialization and constants for BigComplex.


testQuaternionConstants

public void testQuaternionConstants()
Test static initialization and constants for BigQuaternion.


testRationalConstructor

public void testRationalConstructor()
Test string constructor and toString for BigRational.


testComplexConstructor

public void testComplexConstructor()
Test string constructor and toString for BigComplex.


testQuaternionConstructor

public void testQuaternionConstructor()
Test string constructor and toString for BigQuaternion.


testRationalRandom

public void testRationalRandom()
Test random and compares Rational.


testComplexRandom

public void testComplexRandom()
Test random and compares Complex.


testQuaternionRandom

public void testQuaternionRandom()
Test random and compares Quaternion.


testRationalAddition

public void testRationalAddition()
Test addition for Rational.


testComplexAddition

public void testComplexAddition()
Test addition for Complex.


testQuaternionAddition

public void testQuaternionAddition()
Test addition for Quaternion.


testRationalMultiplication

public void testRationalMultiplication()
Test multiplication for Rational.


testComplexMultiplication

public void testComplexMultiplication()
Test multiplication for Complex.


testQuaternionMultiplication

public void testQuaternionMultiplication()
Test multiplication for Quaternion.


testRationalPower

public void testRationalPower()
Test power for Rational.


testIntegerPower

public void testIntegerPower()
Test power for Integer.


testCombinatoric

public void testCombinatoric()
Test Combinatoric.


testSquareRoot

public void testSquareRoot()
Test square root.


testRoot

public void testRoot()
Test root.


testRootDecimal

public void testRootDecimal()
Test root decimal.