Package edu.jas.poly
Class ExpVectorTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.jas.poly.ExpVectorTest
-
- All Implemented Interfaces:
junit.framework.Test
public class ExpVectorTest extends junit.framework.TestCase
ExpVector tests with JUnit. Tests arithmetic operations, for comparison tests see TermOrderTest.- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description ExpVectorTest(java.lang.String name)
Constructs aExpVectorTest
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
mainvoid
runWeightdeg(ExpVector a, ExpVector b)
Run weight degree tests.protected void
setUp()
static junit.framework.Test
suite()
protected void
tearDown()
void
testAddition()
Test addition.void
testAddition2()
Test addition.void
testBitLength()
Test bitLength.void
testByte()
Test ExpVectorByte.void
testConstructor()
Test constructor and toString.void
testDependency()
Test dependency on variables.void
testDependency2()
Test dependency on variables.void
testEvaluation()
Test evaluation.void
testInteger()
Test ExpVectorInteger.void
testLcm()
Test lcm.void
testLcm2()
Test lcm.void
testRandom()
Test random integer.void
testRandom2()
Test random exp vector 2.void
testShort()
Test ExpVectorShort.void
testTdeg()
Test tdeg.void
testTdeg2()
Test tdeg.void
testWeightdeg()
Test weight degree.void
testWeightdeg2()
Test weighted.void
testWeightdegIntShortByte()
Test weight degree, long, integer, short and byte.-
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
-
ExpVectorTest
public ExpVectorTest(java.lang.String name)
Constructs aExpVectorTest
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
-
testConstructor
public void testConstructor()
Test constructor and toString.
-
testBitLength
public void testBitLength()
Test bitLength.
-
testRandom
public void testRandom()
Test random integer.
-
testAddition
public void testAddition()
Test addition.
-
testLcm
public void testLcm()
Test lcm.
-
testTdeg
public void testTdeg()
Test tdeg.
-
testWeightdeg
public void testWeightdeg()
Test weight degree.
-
testDependency
public void testDependency()
Test dependency on variables.
-
testRandom2
public void testRandom2()
Test random exp vector 2.
-
testAddition2
public void testAddition2()
Test addition.
-
testLcm2
public void testLcm2()
Test lcm.
-
testTdeg2
public void testTdeg2()
Test tdeg.
-
testWeightdeg2
public void testWeightdeg2()
Test weighted.
-
testDependency2
public void testDependency2()
Test dependency on variables.
-
testEvaluation
public void testEvaluation()
Test evaluation.
-
testInteger
public void testInteger()
Test ExpVectorInteger.
-
testShort
public void testShort()
Test ExpVectorShort.
-
testByte
public void testByte()
Test ExpVectorByte.
-
testWeightdegIntShortByte
public void testWeightdegIntShortByte()
Test weight degree, long, integer, short and byte.
-
runWeightdeg
public void runWeightdeg(ExpVector a, ExpVector b)
Run weight degree tests.
-
-