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 some basic things -
testBinaryOperations
Test all binary operations. -
testIllegalOperators
Test some illegal operators -
testBinaryOperatorAtEndOfExpression
Test handling of binary operator at the end of the expression. -
testNumberParser
Test the number parser -
testZeroArgumentFunctions
Test the zero argument functions. -
testUnaryOperators
Test the unary operators -
testOneArgumentFunctions
Test the one argument functions (mostly math) -
testTwoArgumentFunctions
Test the two-parameter functions. -
testDivisionByZero
Test division by zero -
testEvaluationOrder
Test the order in which operators are applied. -
testConditionalExpressions
Test conditional expressions -
testNamedVariablesAndHandlingOfAbsoluteOperands
Test the mechanism for retrieving the values from a value store by name and the handling of absolute operands. -
testUserParser
Test the user-provided unit parser hook. -
testEvaluateAsMethods
Test the evaluateAs methods -
testUserFunctions
Test the use of user-defined functions. -
testBuiltinFunction
Test the builtinFunctions method.
-