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

dfdl:hexBinary example in spec differs from actual output

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 2.0.0
    • None
    • None

      According to the spec,
      dfdl:hexBinary(-2084) is the hexBinary value "F7FF"

      test hexBinary_unparse_17 sets up this example, but the actual output is 'f7dc' instead of 'f7ff'

      Using a signed integer to hex conversion tool online, it looks like f7dc is the correct value.

      Test is located in the following files:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section05/simple_types/SimpleTypesUnparse.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section05/simple_types/TestSimpleTypesDebug.scala
      daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section05/simple_types/TestSimpleTypesUnparse.scala

              slawrence Steve Lawrence
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: