Package org.djutils.eval
Class TestEval
java.lang.Object
org.djutils.eval.TestEval
TestEval.java.
Copyright (c) 2023-2025 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classValue store for testing the value retrieval system. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest some basic thingsvoidTest all binary operations.voidTest handling of binary operator at the end of the expression.voidTest the builtinFunctions method.voidTest conditional expressionsvoidTest division by zerovoidTest the evaluateAs methodsvoidTest the order in which operators are applied.voidTest some illegal operatorsvoidTest the mechanism for retrieving the values from a value store by name and the handling of absolute operands.voidTest the number parservoidTest the one argument functions (mostly math)voidTest the two-parameter functions.voidTest the unary operatorsvoidTest the use of user-defined functions.voidTest the user-provided unit parser hook.voidTest the zero argument functions.
-
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.
-