bitcoinjs-lib/test/fixtures/bufferutils.json

77 lines
1.3 KiB
JSON
Raw Normal View History

2014-05-18 11:47:39 +02:00
{
2014-05-01 11:38:18 +02:00
"valid": [
{
"dec": 0,
2018-04-13 17:07:10 +02:00
"hex": "0000000000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 1,
2018-04-13 17:07:10 +02:00
"hex": "0100000000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 252,
2018-04-13 17:07:10 +02:00
"hex": "fc00000000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 253,
2018-04-13 17:07:10 +02:00
"hex": "fd00000000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 254,
2018-04-13 17:07:10 +02:00
"hex": "fe00000000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 255,
2018-04-13 17:07:10 +02:00
"hex": "ff00000000000000"
},
{
"dec": 65534,
2018-04-13 17:07:10 +02:00
"hex": "feff000000000000"
},
2014-05-01 11:38:18 +02:00
{
"dec": 65535,
2018-04-13 17:07:10 +02:00
"hex": "ffff000000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 65536,
2018-04-13 17:07:10 +02:00
"hex": "0000010000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 65537,
2018-04-13 17:07:10 +02:00
"hex": "0100010000000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 4294967295,
2018-04-13 17:07:10 +02:00
"hex": "ffffffff00000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 4294967296,
2018-04-13 17:07:10 +02:00
"hex": "0000000001000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 4294967297,
2018-04-13 17:07:10 +02:00
"hex": "0100000001000000"
2014-05-01 11:38:18 +02:00
},
{
"dec": 9007199254740991,
2018-04-13 17:07:10 +02:00
"hex": "ffffffffffff1f00"
2014-05-01 11:38:18 +02:00
}
],
"invalid": {
"readUInt64LE": [
{
"description": "n === 2^53",
2016-10-06 12:53:48 +02:00
"exception": "RangeError: value out of range",
2018-04-13 17:07:10 +02:00
"hex": "0000000000002000",
"dec": 9007199254740992
},
{
"description": "n > 2^53",
2016-10-06 12:53:48 +02:00
"exception": "RangeError: value out of range",
2018-04-13 17:07:10 +02:00
"hex": "0100000000002000",
"dec": 9007199254740993
}
]
}
2014-05-01 11:38:18 +02:00
}