Package edu.jas.ufd
Class GCDPrimitiveTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.jas.ufd.GCDPrimitiveTest
-
- All Implemented Interfaces:
junit.framework.Test
public class GCDPrimitiveTest extends junit.framework.TestCase
GCD Primitive PRS algorithm tests with JUnit.- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description GCDPrimitiveTest(java.lang.String name)
Constructs aGCDPrimitiveTest
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
main.protected void
setUp()
static junit.framework.Test
suite()
protected void
tearDown()
void
testArbitraryRecursiveGCD()
Test arbitrary recursive gcd.void
testBaseContentPP()
Test base content and primitive part.void
testBaseGcd()
Test base gcd.void
testBaseQR()
Test base quotioent and remainder.void
testContentPP()
Test content and primitive part.void
testCoPrime()
Test co-prime factors.void
testGCD()
Test gcd.void
testGCD3()
Test gcd 3 variables.void
testGCDfield()
Test gcd field coefficients.void
testLCM()
Test lcm.void
testRecursiveContentPP()
Test recursive content and primitive part.void
testRecursiveGCD()
Test recursive gcd.void
testRecursiveQR()
Test recursive quotioent and remainder.-
Methods inherited from class junit.framework.TestCase
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
-
-
-
-
Constructor Detail
-
GCDPrimitiveTest
public GCDPrimitiveTest(java.lang.String name)
Constructs aGCDPrimitiveTest
object.- Parameters:
name
- String.
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
main.
-
suite
public static junit.framework.Test suite()
-
setUp
protected void setUp()
- Overrides:
setUp
in classjunit.framework.TestCase
-
tearDown
protected void tearDown()
- Overrides:
tearDown
in classjunit.framework.TestCase
-
testBaseQR
public void testBaseQR()
Test base quotioent and remainder.
-
testBaseContentPP
public void testBaseContentPP()
Test base content and primitive part.
-
testBaseGcd
public void testBaseGcd()
Test base gcd.
-
testRecursiveQR
public void testRecursiveQR()
Test recursive quotioent and remainder.
-
testRecursiveContentPP
public void testRecursiveContentPP()
Test recursive content and primitive part.
-
testRecursiveGCD
public void testRecursiveGCD()
Test recursive gcd.
-
testArbitraryRecursiveGCD
public void testArbitraryRecursiveGCD()
Test arbitrary recursive gcd.
-
testContentPP
public void testContentPP()
Test content and primitive part.
-
testGCD3
public void testGCD3()
Test gcd 3 variables.
-
testGCD
public void testGCD()
Test gcd.
-
testGCDfield
public void testGCDfield()
Test gcd field coefficients.
-
testLCM
public void testLCM()
Test lcm.
-
testCoPrime
public void testCoPrime()
Test co-prime factors.
-
-