Package edu.jas.ufd
Class GCDSubresRatTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.jas.ufd.GCDSubresRatTest
-
- All Implemented Interfaces:
junit.framework.Test
public class GCDSubresRatTest extends junit.framework.TestCase
GCD Subres with rational coefficients algorithm tests with JUnit.- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description GCDSubresRatTest(java.lang.String name)
Constructs aGCDSubresRatTest
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
testDiscriminant()
void
testGcd()
Test gcd.void
testGCD()
Test gcd.void
testGCD3()
Test gcd 3 variables.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
-
GCDSubresRatTest
public GCDSubresRatTest(java.lang.String name)
Constructs aGCDSubresRatTest
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
-
testGcd
public void testGcd()
Test gcd.
-
testBaseQR
public void testBaseQR()
Test base quotioent and remainder.
-
testBaseContentPP
public void testBaseContentPP()
Test base content and primitive part.
-
testDiscriminant
public void testDiscriminant()
-
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.
-
-