File: README.md

package info (click to toggle)
ruby-bson 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,828 kB
  • sloc: ruby: 11,712; ansic: 1,427; java: 514; makefile: 8
file content (15 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
There are the following deliberate changes made to the corpus tests in Ruby:

1. In double.js, Ruby appears to offer less precision than the spec tests
demand:

    irb(main):001:0> -1.23456789012345677E+18
    => -1.2345678901234568e+18

Because of this, -1.23456789012345677E+18 was changed to -1.2345678901234568e+18.
The "e" was lowercased as well. Both the precision reduction and the lowercasing
of "e" changes are also present in the Python driver, which appears to be
affected by the same precision limitation.

2. In datetime.js, the millisecond component of iso8601 serialization of
timestamps is always present, even if it is zero.