edu.jas.ufd
Class GCDModularTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.jas.ufd.GCDModularTest
All Implemented Interfaces:
junit.framework.Test

public class GCDModularTest
extends junit.framework.TestCase

GCD Modular algorithm tests with JUnit.

Author:
Heinz Kredel.

Constructor Summary
GCDModularTest(java.lang.String name)
          Constructs a GCDModularTest object.
 
Method Summary
static void main(java.lang.String[] args)
          main.
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testArbitraryRecursiveGCDModular()
          Test arbitrary recursive gcd modular coefficients.
 void testCoPrime()
          Test co-prime factors.
 void testGCDbaseModular()
          Test base gcd modular coefficients.
 void testGcdModular()
          Test gcd modular coefficients.
 void testModularEvaluationGcd()
          Test modular algorithm gcd with modular evaluation recursive algorithm.
 void testModularSimpleGcd()
          Test modular algorithm gcd with simple PRS recursive algorithm.
 void testRecursiveContentPPmodular()
          Test recursive content and primitive part, modular coefficients.
 void testRecursiveGCDModular()
          Test recursive gcd modular coefficients.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GCDModularTest

public GCDModularTest(java.lang.String name)
Constructs a GCDModularTest 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 class junit.framework.TestCase

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testModularEvaluationGcd

public void testModularEvaluationGcd()
Test modular algorithm gcd with modular evaluation recursive algorithm.


testModularSimpleGcd

public void testModularSimpleGcd()
Test modular algorithm gcd with simple PRS recursive algorithm.


testRecursiveContentPPmodular

public void testRecursiveContentPPmodular()
Test recursive content and primitive part, modular coefficients.


testGCDbaseModular

public void testGCDbaseModular()
Test base gcd modular coefficients.


testRecursiveGCDModular

public void testRecursiveGCDModular()
Test recursive gcd modular coefficients.


testArbitraryRecursiveGCDModular

public void testArbitraryRecursiveGCDModular()
Test arbitrary recursive gcd modular coefficients.


testGcdModular

public void testGcdModular()
Test gcd modular coefficients.


testCoPrime

public void testCoPrime()
Test co-prime factors.