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

DPath: fn:round-half-to-even w/ single argument not supported

XMLWordPrintableJSON

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

      Note: this is an issue with the serialization-with-dpath4-based branches, not the current 0.15.0

      If you call the fn:round-half-to-even function without specifying a precision, you get the following error:

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_round_hte_14b failed: edu.illinois.ncsa.daffodil.exceptions.Abort: Invariant broken. value not one of the expected types

      I thought this was an issue with the function being passed a string, so I tried casting it to a double and rerunning the tests but they failed with the same error.

      See tests:
      test_round_hte_13
      test_round_hte_14

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

                Created:
                Updated:
                Resolved: