Package com.singularsys.jeptests.system
Class BugsTest
java.lang.Object
com.singularsys.jeptests.system.BugsTest
This class is intended to contain all tests related to reported bugs.
- Author:
- Nathan Funk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA matcher for mumbers with commas in them,1,000,000static classClass to hold a number with a unit.static classTokenMatcher used to match a number with a unit. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidBug with parsing (a+b+c)/d.booleanReturns true if n1 depends on n2.voidvoidvoidvoidvoidvoidsetUp()voidvoidvoidvoidtest167()See ticked 167voidvoidvoidvoidvoidvoidvoidvoidvoidTests for other symbols used.voidvoidvoidTests a custom operator table with only 5 operators, see bug #121voidvoidvoidTests [ 1563324 ] getValueAsObject always return null after an error Jep 2.4.0 checks theerrorListvariable before evaluating an expression if there is an error in the list, null is returned.voidvoidvoidvoidvoidTests bug 49.voidTest bug #72 Handling of Constants.voidvoidvoidvoidTest for non latin variable namesvoidSee http://stackoverflow.com/questions/36928755/strange-behavior-in-singularsys-jepvoidvoidvoidvoidTests use of TreeAnalyzer to work out the order of expressions.voidTests use of TreeAnalyzer to work out the order of expressions.voidTests a bug that lead the FractalCanvas example to failvoidvoidvoidTests use of TreeAnalyzer to work out the order of expressions.voidvoidTest for new setTrapUnsetValues method.voidvoidvoidvoidTests bug [ 1585128 ] setAllowUndeclared does not work!!!voidvoidUses a special evaluator to check for stack errorsvoidvoid
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS
-
-
Constructor Details
-
BugsTest
public BugsTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
testFractalBug
Tests a bug that lead the FractalCanvas example to fail. (09/04/2007)- Throws:
Exception
-
testSetAllowUndeclared
@Test public void testSetAllowUndeclared()Tests bug [ 1585128 ] setAllowUndeclared does not work!!! setAllowedUndeclared should add variables to the symbol table.This test parses the expression "x" and checks whether only the variable x is in the symbol table (no more no less)
-
testBug1563324
Tests [ 1563324 ] getValueAsObject always return null after an error Jep 2.4.0 checks theerrorListvariable before evaluating an expression if there is an error in the list, null is returned. This behaviour is bad because errors are added to the list by getValueAsObject. If the first evaluation fails (after a successful parse) then an error is added to the list. Subsequent calls to getValueAsObject fail because there is an error in the list.- Throws:
EvaluationExceptionParseException
-
testBug49
@Test public void testBug49()Tests bug 49. Adding an operator such as "AND" does not work. Instead of being interpreted as and operator it is parsed as a variable. -
bug61_sum_a_b_c_over_d_parses
Bug with parsing (a+b+c)/d. Caused by missing Grammar matcher in parser https://ar.trac.cloudforge.com/jep/ticket/61- Throws:
Exception
-
testBug72
@Test public void testBug72()Test bug #72 Handling of Constants. Sets a constant and then tries to set the value again. The bug was that addVariable failed silently, and the fix was to add exception throwing to addVariable. -
test2008_08_14_switch
- Throws:
Exception
-
testToBase
- Throws:
Exception
-
testBug2008_09_12
@Test public void testBug2008_09_12() -
testBug84
- Throws:
Exception
-
testBug28
- Throws:
Exception
-
test2008_12_13
- Throws:
Exception
-
test2009_02_02
- Throws:
Exception
-
test2009_02_16
@Test public void test2009_02_16() -
testBug116
- Throws:
Exception
-
testBug121A
@Test public void testBug121A()Tests a custom operator table with only 5 operators, see bug #121 -
testBug122
- Throws:
Exception
-
testBug123
- Throws:
Exception
-
testBug30_10_09
- Throws:
Exception
-
testBug23_11_09
@Test public void testBug23_11_09() -
testDottedIdentifiers
- Throws:
ParseException
-
test31Jan2010
- Throws:
JepException
-
testNamesWithSpaces
- Throws:
JepException
-
testChinese
Test for non latin variable names- Throws:
ParseException
-
testVectorExpressionBug_Version_3_30
- Throws:
Exception
-
testBigDecRoundMode
- Throws:
Exception
-
testAlternateSymbols
Tests for other symbols used. Minus sign is actually unicode U+2013- Throws:
Exception
-
testChangeOperatorSymbols
- Throws:
Exception
-
testAlternateSymbolBug
- Throws:
Exception
-
test167
See ticked 167- Throws:
Exception
-
testCarWalk
- Throws:
Exception
-
testPrefixOperators
- Throws:
Exception
-
test1_9_11
- Throws:
Exception
-
test31_8_11
@Test public void test31_8_11() -
dependsOn
Returns true if n1 depends on n2. That is if one of the variables on the rhs of n1 is the lhs variable of n2.- Throws:
JepException
-
testExpressionOrdering
Tests use of TreeAnalyzer to work out the order of expressions.- Throws:
Exception
-
andCustomOperatorWorks
- Throws:
Exception
-
orCustomOperatorWorks
- Throws:
Exception
-
findNewVariables
- Throws:
Exception
-
testMultiLineLoop
Tests use of TreeAnalyzer to work out the order of expressions.- Throws:
ParseExceptionException
-
testExpressionOrderingMultiLine
Tests use of TreeAnalyzer to work out the order of expressions.- Throws:
ParseExceptionException
-
testEvaluationPath
- Throws:
JepException
-
testNumbersAsStrings
- Throws:
JepException
-
testRegExpOp
- Throws:
JepException
-
testGetNonConstantVariables
- Throws:
JepException
-
testCommaNumber
- Throws:
JepException
-
test18April2013
- Throws:
JepException
-
testJexParser
- Throws:
JepException
-
testSlope
- Throws:
JepException
-
testClearValues
See http://stackoverflow.com/questions/36928755/strange-behavior-in-singularsys-jep- Throws:
JepException
-
PosZeroTest
- Throws:
JepException
-
testStackCorruption
Uses a special evaluator to check for stack errors- Throws:
JepException
-
parsing_array_element_access_with_standard_configurable_parser_gives_constant
@Test public void parsing_array_element_access_with_standard_configurable_parser_gives_constant() throws JepException- Throws:
JepException
-
parsing_array_element_access_with_standard_parser_gives_one_element_vector
@Test public void parsing_array_element_access_with_standard_parser_gives_one_element_vector() throws JepException- Throws:
JepException
-
test_extended_ascii
- Throws:
JepException
-
testNullValuedVariable
Test for new setTrapUnsetValues method.- Throws:
JepException- Since:
- Jep 3.5
-
test_issue_no_6
- Throws:
JepException
-