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

TDML Runner bits feature

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s6
    • s5
    • Infrastructure, QA
    • None

      TDML Runner has a feature <documentPart type="bits"> where you can put individual 1's and 0's as bits.

      It is broken.

      If the number of bits is not a multiple of 8, then it needs to add additional bits on the right (as if written as added zeros on the end of the string.

      So <document><documentPart type="bits"/>1</documentPart></document> represents 1 bit, but as a hex byte that bit is 0x80, not 0x01.

      The number of available bits however, as is used when checking if there is left-over data after a test, must be maintained accurately (i.e., does not include any bits added on. So if a test consumes only a single bit, but the data is defined as above, then the test will have consumed all the data.

      If however, the data was

      So <document><documentPart type="bits"/>11</documentPart></document> then there are two bits, and if the test consumes only 1, then 1 bit is left-over data and that is an error.

              jchab Jessie Chab
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: