• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DrRataplan / fontoxpath / 41027416858

30 Oct 2026 08:34AM UTC coverage: 91.205% (+0.002%) from 91.203%
41027416858

push

github

DrRataplan
Implement proper xs:decimal support with arbitrary precision

* implement Decimal class to hold all decimals
* replace all integer / decimals with the new Decimal
* Fix decimal arithmetic, floor, ceiling, round, and related functions

- Route all decimal/integer arithmetic through Decimal for arbitrary precision
- Add Decimal.floor(), Decimal.ceiling(), Decimal.truncate() methods
- Fix fn:floor, fn:ceiling to use Decimal methods for Decimal values
- Fix fn:round, fn:round-half-to-even to use Decimal arithmetic for Decimal values
- Fix determineRoundedNumber for float/double to round half toward +infinity
- Fix array deepLessThan to compare Decimal values properly
- Fix fn:abs to handle Decimal values
- Fix fn:min, fn:max to compare Decimal values properly
- Fix promoteToType to convert Decimal to float for float/double promotion
- Fix isSameMapKey to use Decimal comparison for all numeric types
- Fix op:to to compute length with Decimal arithmetic
- Fix getEffectiveBooleanValue to handle Decimal via coerce
- Fix tryCastToType to validate decimal restrictions
- Fix fn:codepoints-to-string to convert Decimal to number
- Fix array:remove to convert Decimal indices to numbers
- Add early return in fnRound for Decimal when precision >= scale
- Update unrunnableTestCases.csv with known failures

---------

Co-authored-by: Vibe Nuage Agent <vibe@mistral.ai>
Co-authored-by: DrRataplan <DrRataplan@users.noreply.github.com>

5276 of 6160 branches covered (85.65%)

Branch coverage included in aggregate %.

335 of 374 new or added lines in 27 files covered. (89.57%)

147 existing lines in 21 files now uncovered.

11171 of 11873 relevant lines covered (94.09%)

35136.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.19
/src/transformXPathItemToJavascriptObject.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc