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
Modifier and TypeClassDescriptionstatic class
A function which can incorrectly read the stack. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Bug with parsing (a+b+c)/d.void
void
void
void
setUp()
void
void
void
void
void
void
void
test167()
See ticked 167void
void
void
void
void
void
void
void
void
Tests for other symbols used.void
void
void
Tests a custom operator table with only 5 operators, see bug #121void
void
void
void
void
void
void
Tests bug 49.void
Test bug #72 Handling of Constants.void
void
void
void
Test for non latin variable namesvoid
See http://stackoverflow.com/questions/36928755/strange-behavior-in-singularsys-jepvoid
void
void
void
Tests use of TreeAnalyzer to work out the order of expressions.void
Tests use of TreeAnalyzer to work out the order of expressions.void
Tests a bug that lead the FractalCanvas example to fail.void
void
void
Tests use of TreeAnalyzer to work out the order of expressions.void
void
Test for new setTrapUnsetValues method.void
void
void
void
Tests bug [ 1585128 ] setAllowUndeclared does not work!!! setAllowedUndeclared should add variables to the symbol table.void
void
Uses a special evaluator to check for stack errorsvoid
void
-
Constructor Details
-
BugsTest
public BugsTest()
-
-
Method Details
-
setUp
public void setUp() -
testFractalBug
Tests a bug that lead the FractalCanvas example to fail. (09/04/2007)- Throws:
Exception
-
testSetAllowUndeclared
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) -
testBug49
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
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
public void testBug2008_09_12() -
testBug84
- Throws:
Exception
-
testBug28
- Throws:
Exception
-
test2008_12_13
- Throws:
Exception
-
test2009_02_02
- Throws:
Exception
-
test2009_02_16
public void test2009_02_16() -
testBug116
- Throws:
Exception
-
testBug121A
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
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
public void test31_8_11() -
testExpressionOrdering
Tests use of TreeAnalyzer to work out the order of expressions.- Throws:
ParseException
Exception
-
andCustomOperatorWorks
- Throws:
Exception
-
orCustomOperatorWorks
- Throws:
Exception
-
findNewVariables
- Throws:
Exception
-
testMultiLineLoop
Tests use of TreeAnalyzer to work out the order of expressions.- Throws:
ParseException
Exception
-
testExpressionOrderingMultiLine
Tests use of TreeAnalyzer to work out the order of expressions.- Throws:
ParseException
Exception
-
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
-
testNullValuedVariable
Test for new setTrapUnsetValues method.- Throws:
JepException
- Since:
- Jep 3.5
-
setup_BidDecimal_list
public void setup_BidDecimal_list() -
test_adding_lists_of_BigDecimals
- Throws:
JepException
-
test_parsing_a_list_of_BigDecimals
- Throws:
JepException
-
test_extracting_element_from_list_of_BigDecimals
- Throws:
JepException
-
test_extracting_element_from_list_of_BigDecimals_fails_with_standard_parser
public void test_extracting_element_from_list_of_BigDecimals_fails_with_standard_parser() throws JepException- Throws:
JepException
-