Project

Profile

Help

Bug #2923

closed

Incorrect comparison for xs:numeric and NaN

Added by John Lumley about 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2016-09-05
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
0.9
Fix Committed on JS Branch:
0.9
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Comparer.NaNable() is returning numeric ordering results (0|-1|+1) when comparing xs:numerics one or more of which is NaN. According to the spec the result of such comparisons should always be false, no matter what the comparison operator. Will need some trapping at a higher level in Expr.vc or Expr.gc

Illustrated by (xs:double("NaN") lt 1)

Actions #1

Updated by John Lumley almost 8 years ago

  • Status changed from New to Resolved

Corrections applied in Expr.vc and Compare.gc on the Saxon-JS code branch.

Actions #2

Updated by Debbie Lockett almost 8 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Found in version set to 0.9
  • Fixed in version set to 0.9.1

Bug fix applied in the Saxon-JS 0.9.1 beta release.

Actions #3

Updated by Community Admin about 7 years ago

  • Fixed in JS Release set to Saxon-JS 0.9.1
  • Applies to JS Branch 0.9 added
  • Fix Committed on JS Branch 0.9 added
Actions #4

Updated by Debbie Lockett about 7 years ago

  • Applies to branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF Tracking page