org.lsmp.djepJUnit
Class MatrixJepTest

java.lang.Object
  extended byTestCase
      extended byorg.lsmp.djepJUnit.MatrixJepTest

public class MatrixJepTest
extends TestCase

JUnit test for full MatrixJep

Author:
Rich Morris Created on 19-Nov-2003
See Also:
Serialized Form

Field Summary
static boolean SHOW_BAD
           
 
Constructor Summary
MatrixJepTest(java.lang.String name)
           
 
Method Summary
 java.lang.Object calcValue(java.lang.String expr)
           
 void complexValueTest(java.lang.String expr, Complex expected, double tol)
           
static void main(java.lang.String[] args)
           
 void myAssertEquals(java.lang.String msg, java.lang.String actual, java.lang.String expected)
           
protected  void setUp()
           
 void simplifyTest(java.lang.String expr, java.lang.String expected)
           
 void simplifyTestString(java.lang.String expr, java.lang.String expected)
           
static Test suite()
           
 void testAssign()
           
 void testAssignDiff()
           
 void testBad()
           
 void testComplex()
           
 void testDiff()
           
 void testGood()
           
 void testIf()
           
 void testMatrix()
           
 void testOperators()
           
 void testSimp()
           
 void testSimpleSum()
           
 void valueTest(java.lang.String expr, double dub)
           
 void valueTest(java.lang.String expr, java.lang.Object expected)
           
 void valueTest(java.lang.String expr, java.lang.String expected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_BAD

public static final boolean SHOW_BAD
See Also:
Constant Field Values
Constructor Detail

MatrixJepTest

public MatrixJepTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

setUp

protected void setUp()

suite

public static Test suite()

testGood

public void testGood()

valueTest

public void valueTest(java.lang.String expr,
                      double dub)
               throws ParseException
Throws:
ParseException

valueTest

public void valueTest(java.lang.String expr,
                      java.lang.Object expected)
               throws ParseException
Throws:
ParseException

valueTest

public void valueTest(java.lang.String expr,
                      java.lang.String expected)
               throws ParseException
Throws:
ParseException

complexValueTest

public void complexValueTest(java.lang.String expr,
                             Complex expected,
                             double tol)
                      throws java.lang.Exception
Throws:
java.lang.Exception

calcValue

public java.lang.Object calcValue(java.lang.String expr)
                           throws ParseException
Throws:
ParseException

simplifyTest

public void simplifyTest(java.lang.String expr,
                         java.lang.String expected)
                  throws ParseException
Throws:
ParseException

simplifyTestString

public void simplifyTestString(java.lang.String expr,
                               java.lang.String expected)
                        throws ParseException
Throws:
ParseException

testSimpleSum

public void testSimpleSum()
                   throws ParseException
Throws:
ParseException

testOperators

public void testOperators()
                   throws ParseException
Throws:
ParseException

testSimp

public void testSimp()
              throws ParseException
Throws:
ParseException

testComplex

public void testComplex()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testIf

public void testIf()
            throws ParseException
Throws:
ParseException

testAssign

public void testAssign()
                throws ParseException
Throws:
ParseException

testDiff

public void testDiff()
              throws ParseException
Throws:
ParseException

myAssertEquals

public void myAssertEquals(java.lang.String msg,
                           java.lang.String actual,
                           java.lang.String expected)

testAssignDiff

public void testAssignDiff()
                    throws ParseException
Throws:
ParseException

testMatrix

public void testMatrix()
                throws ParseException
Throws:
ParseException

testBad

public void testBad()
             throws ParseException
Throws:
ParseException


http://www.singularsys.com/jep Copyright © 2004 Singular Systems