Package edu.jas.ufd

Class 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 a GCDPrimitiveTest 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GCDPrimitiveTest

        public GCDPrimitiveTest​(java.lang.String name)
        Constructs a GCDPrimitiveTest 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
      • 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.
      • 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.