mirror of
https://github.com/nlohmann/json.git
synced 2026-03-24 01:42:46 +00:00
📝 add documentation for numbers
This commit is contained in:
@@ -589,7 +589,7 @@ TEST_CASE("parser class")
|
||||
|
||||
SECTION("edge cases")
|
||||
{
|
||||
// From RFC7159, Section 6:
|
||||
// From RFC8259, Section 6:
|
||||
// Note that when such software is used, numbers that are
|
||||
// integers and are in the range [-(2**53)+1, (2**53)-1]
|
||||
// are interoperable in the sense that implementations will
|
||||
@@ -603,7 +603,7 @@ TEST_CASE("parser class")
|
||||
|
||||
SECTION("over the edge cases") // issue #178 - Integer conversion to unsigned (incorrect handling of 64 bit integers)
|
||||
{
|
||||
// While RFC7159, Section 6 specifies a preference for support
|
||||
// While RFC8259, Section 6 specifies a preference for support
|
||||
// for ranges in range of IEEE 754-2008 binary64 (double precision)
|
||||
// this does not accommodate 64 bit integers without loss of accuracy.
|
||||
// As 64 bit integers are now widely used in software, it is desirable
|
||||
@@ -888,7 +888,7 @@ TEST_CASE("parser class")
|
||||
|
||||
SECTION("edge cases")
|
||||
{
|
||||
// From RFC7159, Section 6:
|
||||
// From RFC8259, Section 6:
|
||||
// Note that when such software is used, numbers that are
|
||||
// integers and are in the range [-(2**53)+1, (2**53)-1]
|
||||
// are interoperable in the sense that implementations will
|
||||
@@ -902,7 +902,7 @@ TEST_CASE("parser class")
|
||||
|
||||
SECTION("over the edge cases") // issue #178 - Integer conversion to unsigned (incorrect handling of 64 bit integers)
|
||||
{
|
||||
// While RFC7159, Section 6 specifies a preference for support
|
||||
// While RFC8259, Section 6 specifies a preference for support
|
||||
// for ranges in range of IEEE 754-2008 binary64 (double precision)
|
||||
// this does not accommodate 64 bit integers without loss of accuracy.
|
||||
// As 64 bit integers are now widely used in software, it is desirable
|
||||
|
||||
@@ -418,9 +418,9 @@ TEST_CASE("json.org examples")
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("RFC 7159 examples")
|
||||
TEST_CASE("RFC 8259 examples")
|
||||
{
|
||||
// here, we list all JSON values from the RFC 7159 document
|
||||
// here, we list all JSON values from the RFC 8259 document
|
||||
|
||||
SECTION("7. Strings")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user