public class BigIntegerTest extends junit.framework.TestCase
| Constructor and Description |
|---|
BigIntegerTest(java.lang.String name)
Constructs a
BigIntegerTest object. |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
main
|
protected void |
setUp() |
static junit.framework.Test |
suite()
suite.
|
protected void |
tearDown() |
void |
testAddition()
Test addition.
|
void |
testBitLength()
Test bitLength.
|
void |
testConstants()
Test static initialization and constants.
|
void |
testConstructor()
Test constructor and toString.
|
void |
testDistributive()
Test distributive law.
|
void |
testGcd()
Test gcd.
|
void |
testIterator()
Test iterator.
|
void |
testMultiplication()
Test multiplication.
|
void |
testNNIterator()
Test non-negative iterator.
|
void |
testRandom()
Test random integer.
|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic BigIntegerTest(java.lang.String name)
BigIntegerTest object.name - String.public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
protected void setUp()
setUp in class junit.framework.TestCaseprotected void tearDown()
tearDown in class junit.framework.TestCasepublic void testConstants()
public void testBitLength()
public void testConstructor()
public void testRandom()
public void testAddition()
public void testMultiplication()
public void testDistributive()
public void testGcd()
public void testIterator()
public void testNNIterator()