Lines Matching refs:hex
118 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
119 const int64 = hexToInt64(hex);
125 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
126 const int64 = hexToInt64(hex);
132 it('serializes to unsigned hex strings', () => {
133 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
134 const int64 = hexToInt64(hex);
135 let shortHex = hex.replace(/0x0*/, '0x');
144 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
146 expect(int64ToHex(signed)).toEqual(hex);
149 expect(int64ToHex(unsigned)).toEqual(hex);
154 it('parses hex strings', () => {
155 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
156 expect(int64ToHex(Int64.fromHexString(hex))).toEqual(hex);