Class BugsTest

java.lang.Object
com.singularsys.jeptests.system.BugsTest

public class BugsTest extends Object
This class is intended to contain all tests related to reported bugs.
Author:
Nathan Funk
  • Constructor Details

    • BugsTest

      public BugsTest()
  • Method Details

    • setUp

      public void setUp()
    • testFractalBug

      public void testFractalBug() throws Exception
      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

      public void bug61_sum_a_b_c_over_d_parses() throws Exception
      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

      public void test2008_08_14_switch() throws Exception
      Throws:
      Exception
    • testToBase

      public void testToBase() throws Exception
      Throws:
      Exception
    • testBug2008_09_12

      public void testBug2008_09_12()
    • testBug84

      public void testBug84() throws Exception
      Throws:
      Exception
    • testBug28

      public void testBug28() throws Exception
      Throws:
      Exception
    • test2008_12_13

      public void test2008_12_13() throws Exception
      Throws:
      Exception
    • test2009_02_02

      public void test2009_02_02() throws Exception
      Throws:
      Exception
    • test2009_02_16

      public void test2009_02_16()
    • testBug116

      public void testBug116() throws Exception
      Throws:
      Exception
    • testBug121A

      public void testBug121A()
      Tests a custom operator table with only 5 operators, see bug #121
    • testBug122

      public void testBug122() throws Exception
      Throws:
      Exception
    • testBug123

      public void testBug123() throws Exception
      Throws:
      Exception
    • testBug30_10_09

      public void testBug30_10_09() throws Exception
      Throws:
      Exception
    • testBug23_11_09

      public void testBug23_11_09()
    • testDottedIdentifiers

      public void testDottedIdentifiers() throws ParseException
      Throws:
      ParseException
    • test31Jan2010

      public void test31Jan2010() throws JepException
      Throws:
      JepException
    • testNamesWithSpaces

      public void testNamesWithSpaces() throws JepException
      Throws:
      JepException
    • testChinese

      public void testChinese() throws ParseException
      Test for non latin variable names
      Throws:
      ParseException
    • testVectorExpressionBug_Version_3_30

      public void testVectorExpressionBug_Version_3_30() throws Exception
      Throws:
      Exception
    • testBigDecRoundMode

      public void testBigDecRoundMode() throws Exception
      Throws:
      Exception
    • testAlternateSymbols

      public void testAlternateSymbols() throws Exception
      Tests for other symbols used. Minus sign is actually unicode U+2013
      Throws:
      Exception
    • testChangeOperatorSymbols

      public void testChangeOperatorSymbols() throws Exception
      Throws:
      Exception
    • testAlternateSymbolBug

      public void testAlternateSymbolBug() throws Exception
      Throws:
      Exception
    • test167

      public void test167() throws Exception
      Throws:
      Exception
    • testCarWalk

      public void testCarWalk() throws Exception
      Throws:
      Exception
    • testPrefixOperators

      public void testPrefixOperators() throws Exception
      Throws:
      Exception
    • test1_9_11

      public void test1_9_11() throws Exception
      Throws:
      Exception
    • test31_8_11

      public void test31_8_11()
    • testExpressionOrdering

      public void testExpressionOrdering() throws ParseException, Exception
      Tests use of TreeAnalyzer to work out the order of expressions.
      Throws:
      ParseException
      Exception
    • andCustomOperatorWorks

      public void andCustomOperatorWorks() throws Exception
      Throws:
      Exception
    • orCustomOperatorWorks

      public void orCustomOperatorWorks() throws Exception
      Throws:
      Exception
    • findNewVariables

      public void findNewVariables() throws Exception
      Throws:
      Exception
    • testMultiLineLoop

      public void testMultiLineLoop() throws ParseException, Exception
      Tests use of TreeAnalyzer to work out the order of expressions.
      Throws:
      ParseException
      Exception
    • testExpressionOrderingMultiLine

      public void testExpressionOrderingMultiLine() throws ParseException, Exception
      Tests use of TreeAnalyzer to work out the order of expressions.
      Throws:
      ParseException
      Exception
    • testEvaluationPath

      public void testEvaluationPath() throws JepException
      Throws:
      JepException
    • testNumbersAsStrings

      public void testNumbersAsStrings() throws JepException
      Throws:
      JepException
    • testRegExpOp

      public void testRegExpOp() throws JepException
      Throws:
      JepException
    • testGetNonConstantVariables

      public void testGetNonConstantVariables() throws JepException
      Throws:
      JepException
    • testCommaNumber

      public void testCommaNumber() throws JepException
      Throws:
      JepException
    • test18April2013

      public void test18April2013() throws JepException
      Throws:
      JepException
    • testJexParser

      public void testJexParser() throws JepException
      Throws:
      JepException
    • testSlope

      public void testSlope() throws JepException
      Throws:
      JepException
    • testClearValues

      public void testClearValues() throws JepException
      See http://stackoverflow.com/questions/36928755/strange-behavior-in-singularsys-jep
      Throws:
      JepException
    • PosZeroTest

      public void PosZeroTest() throws JepException
      Throws:
      JepException
    • testStackCorruption

      public void testStackCorruption() throws JepException
      Uses a special evaluator to check for stack errors
      Throws:
      JepException
    • testNullValuedVariable

      public void testNullValuedVariable() throws JepException
      Test for new setTrapUnsetValues method.
      Throws:
      JepException
      Since:
      Jep 3.5
    • setup_BidDecimal_list

      public void setup_BidDecimal_list()
    • test_adding_lists_of_BigDecimals

      public void test_adding_lists_of_BigDecimals() throws JepException
      Throws:
      JepException
    • test_parsing_a_list_of_BigDecimals

      public void test_parsing_a_list_of_BigDecimals() throws JepException
      Throws:
      JepException
    • test_extracting_element_from_list_of_BigDecimals

      public void test_extracting_element_from_list_of_BigDecimals() throws JepException
      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