Class TestEval

java.lang.Object
org.djutils.eval.TestEval

public class TestEval extends Object
TestEval.java.

Copyright (c) 2023-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

Author:
Peter Knoppers
  • Constructor Details

    • TestEval

      public TestEval()
  • Method Details

    • testBasics

      @Test public void testBasics()
      Test some basic things
    • testBinaryOperations

      @Test public void testBinaryOperations()
      Test all binary operations.
    • testIllegalOperators

      @Test public void testIllegalOperators()
      Test some illegal operators
    • testBinaryOperatorAtEndOfExpression

      @Test public void testBinaryOperatorAtEndOfExpression()
      Test handling of binary operator at the end of the expression.
    • testNumberParser

      @Test public void testNumberParser()
      Test the number parser
    • testZeroArgumentFunctions

      @Test public void testZeroArgumentFunctions()
      Test the zero argument functions.
    • testUnaryOperators

      @Test public void testUnaryOperators()
      Test the unary operators
    • testOneArgumentFunctions

      @Test public void testOneArgumentFunctions()
      Test the one argument functions (mostly math)
    • testTwoArgumentFunctions

      @Test public void testTwoArgumentFunctions()
      Test the two-parameter functions.
    • testDivisionByZero

      @Test public void testDivisionByZero()
      Test division by zero
    • testEvaluationOrder

      @Test public void testEvaluationOrder()
      Test the order in which operators are applied.
    • testConditionalExpressions

      @Test public void testConditionalExpressions()
      Test conditional expressions
    • testNamedVariablesAndHandlingOfAbsoluteOperands

      @Test public void testNamedVariablesAndHandlingOfAbsoluteOperands()
      Test the mechanism for retrieving the values from a value store by name and the handling of absolute operands.
    • testUserParser

      @Test public void testUserParser()
      Test the user-provided unit parser hook.
    • testEvaluateAsMethods

      @Test public void testEvaluateAsMethods()
      Test the evaluateAs methods
    • testUserFunctions

      @Test public void testUserFunctions()
      Test the use of user-defined functions.
    • testBuiltinFunction

      @Test public void testBuiltinFunction()
      Test the builtinFunctions method.