aizu-m commented on PR #175:
URL: https://github.com/apache/poi-xmlbeans/pull/175#issuecomment-7140085231

   Added, b4cac35. Two new elements per facet with a `NaN` bound (`fltnan-*`, 
`dblnan-*`) and two tests:
   
   - `nanAgainstNanBoundComparesEqual`: NaN against a NaN bound. `compare` 
falls through to the bit patterns and returns 0, so 
`minInclusive`/`maxInclusive` hold and `minExclusive`/`maxExclusive` don't. 
Passes on trunk too, which is the point: `incomparable` leaves that pair alone.
   - `nanBoundFailsEveryNumber`: 0, INF and -INF against a NaN bound, all four 
facets. Fails on trunk at `fltnan-maxInclusive 0` (`expected: 
<[cvc-maxInclusive-valid]> but was: <[]>`), passes with the fix.
   
   That's `nanFailsEveryBound` and `nanBoundFailsEveryNumber` failing on trunk 
and all 8 green with the change.
   
   Noted on `compareValue`. It returns 1/-1 off the same bit-pattern order, so 
`XmlObject.compareValue` says NaN is greater than every number instead of 2. 
Separate from validation, I'll keep it out of this one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to