Package org.djutils.eval
Class TestEval
java.lang.Object
org.djutils.eval.TestEval
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
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
Value store for testing the value retrieval system. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test some basic thingsvoid
Test all binary operations.void
Test handling of binary operator at the end of the expression.void
Test the builtinFunctions method.void
Test conditional expressionsvoid
Test division by zerovoid
Test the evaluateAs methodsvoid
Test the order in which operators are applied.void
Test some illegal operatorsvoid
Test the mechanism for retrieving the values from a value store by name and the handling of absolute operands.void
Test the number parservoid
Test the one argument functions (mostly math)void
Test the two-parameter functions.void
Test the unary operatorsvoid
Test the use of user-defined functions.void
Test the user-provided unit parser hook.void
Test 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.
-