Package com.singularsys.jeptests.system

# Class ExpressionEvalTest

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

public class ExpressionEvalTest extends 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

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected int`
  `lineCount`
  Current line position

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ExpressionEvalTest()`
  Creates a new ExpressionEvalTest instance

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `main(String[] args)`
  The main method checks the arguments and creates an instance and runs a test
  `protected static void`
  `println(String str)`
  Helper function for printing lines.
  `void`
  `testConfParser()`
  `void`
  `testFast()`
  `void`
  `testJepInstance(Jep jep, BufferedReader reader)`
  `void`
  `testJepInstance(Jep jep, 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`

- ## Field Details

  - ### lineCount

    protected int lineCount
    Current line position

- ## Constructor Details

  - ### ExpressionEvalTest

    public ExpressionEvalTest()
    Creates a new ExpressionEvalTest instance

- ## Method Details

  - ### main

    public static void main(String[] args)
    The main method checks the arguments and creates an instance and runs a test

  - ### testStandard

    @Test public void testStandard() throws Exception
    Throws:
      `Exception`

  - ### testFast

    @Test public void testFast() throws Exception
    Throws:
      `Exception`

  - ### testConfParser

    @Test public void testConfParser() throws Exception
    Throws:
      `Exception`

  - ### testPostfixEvaluator

    @Test public void testPostfixEvaluator() throws Exception
    Throws:
      `Exception`

  - ### testReals

    @Test public void testReals() throws Exception
    Throws:
      `Exception`

  - ### testJepInstance

    public void testJepInstance(Jep jep, String fileName)
    Loads the file specified in fileName. Evaluates the expressions listed in it and compares the expressions with the results.

  - ### testJepInstance

    public void testJepInstance(Jep jep, BufferedReader reader)

  - ### println

    protected static void println(String str)
    Helper function for printing lines.