Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1119

DPath: xs:double Inconsistencies

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.0.0
    • s15
    • Back End
    • None

      Note: This is in the DPath implementation of Daffodil

      All of the double constructor tests are failing (except the negative test) for strange rounding and precision issues.

      e.g.

      [info] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_double_constructor_01 started
      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_double_constructor_01 failed: java.lang.Exception:
      [error] Comparison failed.
      [error] Expected
      [error] <double01><string>4.3</string><doublified>4.3</doublified></double01>
      [error] Actual
      [error] <double01><string>4.3</string><doublified>4.300000190734863</doublified></double01>
      [error] Differences were (path, expected, actual):
      [error] (double01/doublified,'4.3','4.300000190734863')

      See tests:
      test_double_constructor_01
      test_double_constructor_02
      test_double_constructor_03
      test_double_constructor_04
      test_double_constructor_05
      test_double_constructor_07

      In daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml

              jchab Jessie Chab
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 5 minutes
                  5m