Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.singularsys.jeptests
Class ExpressionEvalTest

    java.lang.Object
      com.singularsys.jeptests.ExpressionEvalTest

    public class ExpressionEvalTest

extends java.lang.Object

This class is designed for testing the validity of JEP evaluations. Expressions from a text file are evaluated with JEP in pairs of two, and the results are compared. If they do not match, the two expressions are printed to standard output.

Take for example an input text file containing the two lines

    1+2
    3.

The expressions '1+2' and '3' are evaluated with JEP and the results compared.

Author:
  Nathan Funk

Constructor Summary
`ExpressionEvalTest()` Creates a new ExpressionEvalTest instance

Method Summary
`static void` | `main(java.lang.String[] args)` The main method checks the arguments and creates an instance and runs a test
`void` | `testJepInstance(Jep jep, java.lang.String fileName)` Loads the file specified in fileName.
`void` | `testPostfixEvaluator()`
`void` | `testReals()`
`void` | `testStandard()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ExpressionEvalTest

    public ExpressionEvalTest()

  Creates a new ExpressionEvalTest instance

Method Detail

### main

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

  The main method checks the arguments and creates an instance and runs a test

### testStandard

    public void testStandard()

### testPostfixEvaluator

    public void testPostfixEvaluator()

### testReals

    public void testReals()

### testJepInstance

    public void testJepInstance(Jep jep,
                                java.lang.String fileName)

  Loads the file specified in fileName. Evaluates the expressions listed in it and compares the expressions with the results.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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