org.lsmp.djepJUnit
Class RewriteTest

java.lang.Object
  extended by TestCase
      extended by org.lsmp.djepJUnit.RewriteTest

public class RewriteTest
extends TestCase

Author:
Rich Morris Created on 19-Nov-2003

Field Summary
static boolean SHOW_BAD
           
 
Constructor Summary
RewriteTest(java.lang.String name)
           
 
Method Summary
 java.lang.Object calcValue(java.lang.String expr)
           
static void main(java.lang.String[] args)
           
 void myAssertEquals(java.lang.String msg, java.lang.String actual, java.lang.String expected)
           
 Node parseProcSimpEval(java.lang.String expr, java.lang.Object 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 testAssign2()
           
 void testAssignDiff()
           
 void testBad()
           
 void testDiff()
           
 void testEval()
           
 void testGood()
           
 void testIf()
           
 void testMemory()
           
 void testOperators()
           
 void testRewrite()
           
 void testSimp()
           
 void testSimpleSum()
           
 void testSqrt()
           
 void testSum()
           
 void testTaylor()
           
 void testVariableReuse()
           
 void valueTest(java.lang.String expr, double dub)
           
 void valueTest(java.lang.String expr, java.lang.Object 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

RewriteTest

public RewriteTest(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)

valueTest

public void valueTest(java.lang.String expr,
                      java.lang.Object expected)

calcValue

public java.lang.Object calcValue(java.lang.String expr)

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

parseProcSimpEval

public Node parseProcSimpEval(java.lang.String expr,
                              java.lang.Object expected)
                       throws ParseException,
                              java.lang.Exception
Throws:
ParseException
java.lang.Exception

testSimpleSum

public void testSimpleSum()

testOperators

public void testOperators()

testEval

public void testEval()
              throws ParseException
Throws:
ParseException

testSimp

public void testSimp()
              throws ParseException
Throws:
ParseException

testIf

public void testIf()

testAssign

public void testAssign()

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

testVariableReuse

public void testVariableReuse()
                       throws ParseException,
                              java.lang.Exception
Throws:
ParseException
java.lang.Exception

testAssign2

public void testAssign2()

testSqrt

public void testSqrt()

testSum

public void testSum()

testRewrite

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

testTaylor

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

testMemory

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

testBad

public void testBad()
             throws ParseException
Throws:
ParseException


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