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

div/idiv is broken. Has no tests

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: Back End, QA
    • Labels:
      None

      Description

      From a code review:

      suspect idiv is/has been broken. This xpath spec says (a idiv b) is equivilent to (a div b) cast as an xs:integer. So I would either expect this to be RoundingMode.FLOOR here, or have some code elsewhere that inserts a cast to integer, but I don't see that. There also do not appear to be any tests for idiv, so I wouldn't be surprised if this is broken.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dthompson David Thompson
                Reporter:
                mbeckerle.dfdl Mike Beckerle
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Tasks