public class ModLongTest extends junit.framework.TestCase
| Constructor and Description |
|---|
ModLongTest(java.lang.String name)
Constructs a
ModLongTest object. |
| Modifier and Type | Method and Description |
|---|---|
protected static java.math.BigInteger |
getPrime1() |
protected static java.math.BigInteger |
getPrime2() |
protected static java.math.BigInteger |
getPrime3() |
protected static java.math.BigInteger |
getPrime4() |
static void |
main(java.lang.String[] args)
main.
|
protected void |
setUp() |
static junit.framework.Test |
suite() |
protected void |
tearDown() |
void |
testAddition()
Test addition.
|
void |
testBitLength()
Test bitLength.
|
void |
testChineseRemainder()
Test chinese remainder.
|
void |
testChineseRemainderLists()
Test chinese remainder of lists.
|
void |
testConstants()
Test static initialization and constants.
|
void |
testConstructor()
Test constructor and toString.
|
void |
testIterator()
Test iterator.
|
void |
testMultiplication()
Test multiplication.
|
void |
testRandom()
Test random modular integers.
|
void |
testTiming()
Test timing ModLong to ModInteger.
|
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 ModLongTest(java.lang.String name)
ModLongTest object.name - Stringpublic 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.TestCaseprotected static java.math.BigInteger getPrime1()
protected static java.math.BigInteger getPrime2()
protected static java.math.BigInteger getPrime3()
protected static java.math.BigInteger getPrime4()
public void testConstants()
public void testBitLength()
public void testConstructor()
public void testRandom()
public void testAddition()
public void testMultiplication()
public void testChineseRemainder()
public void testChineseRemainderLists()
public void testTiming()
public void testIterator()