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 aGCDPrimitiveTestobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)main.protected voidsetUp()static junit.framework.Testsuite()protected voidtearDown()voidtestArbitraryRecursiveGCD()Test arbitrary recursive gcd.voidtestBaseContentPP()Test base content and primitive part.voidtestBaseGcd()Test base gcd.voidtestBaseQR()Test base quotioent and remainder.voidtestContentPP()Test content and primitive part.voidtestCoPrime()Test co-prime factors.voidtestGCD()Test gcd.voidtestGCD3()Test gcd 3 variables.voidtestGCDfield()Test gcd field coefficients.voidtestLCM()Test lcm.voidtestRecursiveContentPP()Test recursive content and primitive part.voidtestRecursiveGCD()Test recursive gcd.voidtestRecursiveQR()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 aGCDPrimitiveTestobject.- 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:
setUpin classjunit.framework.TestCase
-
tearDown
protected void tearDown()
- Overrides:
tearDownin 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.
-
-