Package edu.jas.ufd
Class GCDModEvalTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.jas.ufd.GCDModEvalTest
-
- All Implemented Interfaces:
junit.framework.Test
public class GCDModEvalTest extends junit.framework.TestCase
GCD Modular Evaluation algorithm tests with JUnit.- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description GCDModEvalTest(java.lang.String name)Constructs aGCDModEvalTestobject.
-
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.voidtestLCM()Test lcm.voidtestModEvalGcd()Test modular evaluation gcd.voidtestRecursiveContentPP()Test recursive content and primitive part.voidtestRecursiveGCD()Test recursive gcd.voidtestRecursiveQR()Test recursive quotioent and remainder.voidtestResultant()Test resultant.-
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
-
GCDModEvalTest
public GCDModEvalTest(java.lang.String name)
Constructs aGCDModEvalTestobject.- 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
-
testModEvalGcd
public void testModEvalGcd()
Test modular evaluation gcd.
-
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.
-
testLCM
public void testLCM()
Test lcm.
-
testCoPrime
public void testCoPrime()
Test co-prime factors.
-
testResultant
public void testResultant()
Test resultant.
-
-