org.apache.commons.math.util
Class MathUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.util.MathUtilsTest
All Implemented Interfaces:
junit.framework.Test

public final class MathUtilsTest
extends junit.framework.TestCase

Test cases for the MathUtils class.

Version:
$Revision: 619980 $ $Date: 2007-08-16 15:36:33 -0500 (Thu, 16 Aug 2007) $

Constructor Summary
MathUtilsTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
           
 void test0Choose0()
          Verify that b(0,0) = 1
 void testAddAndCheck()
           
 void testAddAndCheckLong()
           
 void testArrayEquals()
           
 void testArrayHash()
           
 void testBinomialCoefficient()
           
 void testBinomialCoefficientFail()
           
 void testCosh()
           
 void testCoshNaN()
           
 void testEquals()
           
 void testFactorial()
           
 void testFactorialFail()
           
 void testGcd()
           
 void testHash()
           
 void testIndicatorByte()
           
 void testIndicatorDouble()
           
 void testIndicatorFloat()
           
 void testIndicatorInt()
           
 void testIndicatorLong()
           
 void testIndicatorShort()
           
 void testLcm()
           
 void testLog()
           
 void testMulAndCheck()
           
 void testMulAndCheckLong()
           
 void testNextAfter()
           
 void testNextAfterSpecialCases()
           
 void testNormalizeAngle()
           
 void testRoundDouble()
           
 void testRoundFloat()
           
 void testSignByte()
           
 void testSignDouble()
           
 void testSignFloat()
           
 void testSignInt()
           
 void testSignLong()
           
 void testSignShort()
           
 void testSinh()
           
 void testSinhNaN()
           
 void testSubAndCheck()
           
 void testSubAndCheckErrorMessage()
           
 void testSubAndCheckLong()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MathUtilsTest

public MathUtilsTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

test0Choose0

public void test0Choose0()
Verify that b(0,0) = 1


testAddAndCheck

public void testAddAndCheck()

testAddAndCheckLong

public void testAddAndCheckLong()

testBinomialCoefficient

public void testBinomialCoefficient()

testBinomialCoefficientFail

public void testBinomialCoefficientFail()

testCosh

public void testCosh()

testCoshNaN

public void testCoshNaN()

testEquals

public void testEquals()

testArrayEquals

public void testArrayEquals()

testFactorial

public void testFactorial()

testFactorialFail

public void testFactorialFail()

testGcd

public void testGcd()

testHash

public void testHash()

testArrayHash

public void testArrayHash()

testIndicatorByte

public void testIndicatorByte()

testIndicatorDouble

public void testIndicatorDouble()

testIndicatorFloat

public void testIndicatorFloat()

testIndicatorInt

public void testIndicatorInt()

testIndicatorLong

public void testIndicatorLong()

testIndicatorShort

public void testIndicatorShort()

testLcm

public void testLcm()

testLog

public void testLog()

testMulAndCheck

public void testMulAndCheck()

testMulAndCheckLong

public void testMulAndCheckLong()

testNextAfter

public void testNextAfter()

testNextAfterSpecialCases

public void testNextAfterSpecialCases()

testNormalizeAngle

public void testNormalizeAngle()

testRoundDouble

public void testRoundDouble()

testRoundFloat

public void testRoundFloat()

testSignByte

public void testSignByte()

testSignDouble

public void testSignDouble()

testSignFloat

public void testSignFloat()

testSignInt

public void testSignInt()

testSignLong

public void testSignLong()

testSignShort

public void testSignShort()

testSinh

public void testSinh()

testSinhNaN

public void testSinhNaN()

testSubAndCheck

public void testSubAndCheck()

testSubAndCheckErrorMessage

public void testSubAndCheckErrorMessage()

testSubAndCheckLong

public void testSubAndCheckLong()


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.