public class ModIntTest extends junit.framework.TestCase
Constructor and Description |
---|
ModIntTest(java.lang.String name)
Constructs a
ModIntTest 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() |
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 ModInt 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, toString
public ModIntTest(java.lang.String name)
ModIntTest
object.name
- Stringpublic 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
protected static java.math.BigInteger getPrime1()
protected static java.math.BigInteger getPrime2()
protected static java.math.BigInteger getPrime3()
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()