Class BigDecimalTest


  • public class BigDecimalTest
    extends java.lang.Object
    Tests the BigDecComponents through a set of test expressions that are evaluated.
    Author:
    singularsys
    • Constructor Detail

      • BigDecimalTest

        public BigDecimalTest()
    • Method Detail

      • unlimitedPrecisionTest

        public void unlimitedPrecisionTest()
      • cmpBug

        public void cmpBug()
        Check for problems where MinMax used comparision which worked by first coverting to doubles.
      • limitedPrecisionTest

        public void limitedPrecisionTest()
      • test

        public void test​(java.lang.String str,
                         boolean value)
        Test expression against boolean
        Parameters:
        str -
        value -
      • test

        public void test​(java.lang.String str,
                         java.lang.String value)
      • eval

        public java.lang.Object eval​(java.lang.String str)
      • testCP

        public void testCP()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • exprEquals

        public void exprEquals​(java.lang.String expr,
                               java.lang.Object expected)
                        throws JepException
        Throws:
        JepException
      • testSetAllowStrings

        public void testSetAllowStrings()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBoolean

        public void testBoolean()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBDString

        public void testBDString()
                          throws java.lang.Exception
        Tests inter-operability of big decimals and strings.
        Throws:
        java.lang.Exception
      • Abs

        public void Abs()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • Round

        public void Round()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • Signum

        public void Signum()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • MinMax

        public void MinMax()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • Avg

        public void Avg()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testIf

        public void testIf()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCoerce

        public void testCoerce()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception