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

textNumberProps: non-distinct properties should cause SDE

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s12
    • s11
    • None
    • None

      According to Errata item 2.106:

      2.106. Section 13.6. State that textStandardDecimalSeparator,
      textStandardGroupingSeparator, textStandardExponentRep, textStandardInfinityRep, textStandardNanRep and textStandardZeroRep must all be entirely distinct from one another, and it is a schema definition otherwise.

      I created a test where the grouping separator matched the decimal separator (both "."), and the parse fails with an ambiguous parse error:

       
      [error] Test edu.illinois.ncsa.daffodil.section13.text_number_props.TestTextNumberProps.test_textStandardGroupingSeparator03 failed: edu.illinois.ncsa.daffodil.processors.ParseError: Parse Error: Convert to Double (for xs:double): Unable to parse '5.000.000.00' (using up all characters).

      See test textStandardGroupingSeparator03 in the following files:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section13/text_number_props/TextNumberProps.tdm
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section13/text_number_props/TextNumberProps.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section13/text_number_props/TestTextNumberPropsDebug.scala

              efinnegan Elizabeth Finnegan
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

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