org.lsmp.djepJUnit
Class MRpTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.lsmp.djepJUnit.MRpTest
All Implemented Interfaces:
junit.framework.Test

public class MRpTest
extends junit.framework.TestCase

JUnit test for full Matrix Rp evaluator

Author:
Rich Morris Created on 19-Nov-2003

Field Summary
static boolean SHOW_BAD
           
 
Constructor Summary
MRpTest(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 junit.framework.Test suite()
           
 void testAssign()
           
 void testAssignDiff()
           
 void testFun()
           
 void testGood()
           
 void testLogical()
           
 void testMul()
           
 void testRp()
           
 void testRpAllDim()
           
 void testUndecVar()
           
 void testVn()
           
 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 junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Field Detail

SHOW_BAD

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

MRpTest

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

suite

public static junit.framework.Test suite()

main

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

setUp

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

testGood

public void testGood()

myAssertEquals

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

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

testRp

public void testRp()
            throws ParseException
Throws:
ParseException

testRpAllDim

public void testRpAllDim()
                  throws ParseException
Throws:
ParseException

testMul

public void testMul()
             throws ParseException
Throws:
ParseException

testAssign

public void testAssign()
                throws ParseException
Throws:
ParseException

testLogical

public void testLogical()
                 throws ParseException
Throws:
ParseException

testVn

public void testVn()
            throws ParseException
Throws:
ParseException

testFun

public void testFun()
             throws ParseException
Throws:
ParseException

testUndecVar

public void testUndecVar()
                  throws ParseException
Throws:
ParseException

testAssignDiff

public void testAssignDiff()
                    throws ParseException
Throws:
ParseException


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