pike.git / lib / modules / Standards.pmod / BSON.pmod / tests / double.json

version» Context lines:

pike.git/lib/modules/Standards.pmod/BSON.pmod/tests/double.json:1: -  + { +  "description": "Double type", +  "bson_type": "0x01", +  "test_key": "d", +  "valid": [ +  { +  "description": "+1.0", +  "canonical_bson": "10000000016400000000000000F03F00", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"1.0\"}}", +  "relaxed_extjson": "{\"d\" : 1.0}" +  }, +  { +  "description": "-1.0", +  "canonical_bson": "10000000016400000000000000F0BF00", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-1.0\"}}", +  "relaxed_extjson": "{\"d\" : -1.0}" +  }, +  { +  "description": "+1.0001220703125", +  "canonical_bson": "10000000016400000000008000F03F00", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"1.0001220703125\"}}", +  "relaxed_extjson": "{\"d\" : 1.0001220703125}" +  }, +  { +  "description": "-1.0001220703125", +  "canonical_bson": "10000000016400000000008000F0BF00", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-1.0001220703125\"}}", +  "relaxed_extjson": "{\"d\" : -1.0001220703125}" +  }, +  { +  "description": "1.23456789012345677E+18", +  "canonical_bson": "1000000001640081E97DF41022B14300", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"1234567890123456768.0\"}}", +  "relaxed_extjson": "{\"d\" : 1234567890123456768.0}" +  }, +  { +  "description": "-1.23456789012345677E+18", +  "canonical_bson": "1000000001640081E97DF41022B1C300", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-1234567890123456768.0\"}}", +  "relaxed_extjson": "{\"d\" : -1234567890123456768.0}" +  }, +  { +  "description": "0.0", +  "canonical_bson": "10000000016400000000000000000000", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"0.0\"}}", +  "relaxed_extjson": "{\"d\" : 0.0}" +  }, +  { +  "description": "-0.0", +  "canonical_bson": "10000000016400000000000000008000", +  "canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-0.0\"}}", +  "relaxed_extjson": "{\"d\" : -0.0}" +  }, +  { +  "description": "NaN", +  "canonical_bson": "10000000016400000000000000F87F00", +  "canonical_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}", +  "relaxed_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}", +  "lossy": true +  }, +  { +  "description": "NaN with payload", +  "canonical_bson": "10000000016400120000000000F87F00", +  "canonical_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}", +  "relaxed_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}", +  "lossy": true +  }, +  { +  "description": "Inf", +  "canonical_bson": "10000000016400000000000000F07F00", +  "canonical_extjson": "{\"d\": {\"$numberDouble\": \"Infinity\"}}", +  "relaxed_extjson": "{\"d\": {\"$numberDouble\": \"Infinity\"}}" +  }, +  { +  "description": "-Inf", +  "canonical_bson": "10000000016400000000000000F0FF00", +  "canonical_extjson": "{\"d\": {\"$numberDouble\": \"-Infinity\"}}", +  "relaxed_extjson": "{\"d\": {\"$numberDouble\": \"-Infinity\"}}" +  } +  ], +  "decodeErrors": [ +  { +  "description": "double truncated", +  "bson": "0B0000000164000000F03F00" +  } +  ] + }   Newline at end of file added.