|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.jas.arith.ArithTest
public class ArithTest
Basic arithmetic tests with JUnit.
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 |
---|
public ArithTest(java.lang.String name)
ArithTest
object.
name
- String.Method Detail |
---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public void testIntegerConstants()
public void testIntegerConstructor()
public void testIntegerRandom()
public void testIntegerAddition()
public void testIntegerMultiplication()
public void testRationalConstants()
public void testComplexConstants()
public void testQuaternionConstants()
public void testRationalConstructor()
public void testComplexConstructor()
public void testQuaternionConstructor()
public void testRationalRandom()
public void testComplexRandom()
public void testQuaternionRandom()
public void testRationalAddition()
public void testComplexAddition()
public void testQuaternionAddition()
public void testRationalMultiplication()
public void testComplexMultiplication()
public void testQuaternionMultiplication()
public void testRationalPower()
public void testIntegerPower()
public void testCombinatoric()
public void testSquareRoot()
public void testRoot()
public void testRootDecimal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |