Lines Matching refs:expect
13 expect(int64.getLowBits()).toEqual(0);
14 expect(int64.getHighBits()).toEqual(1);
19 expect(int64.getLowBits()).toEqual(0);
20 expect(int64.getHighBits()).toEqual(0);
25 expect(int64).toEqual(Int64.fromBits(0xFFFFFFFF, 0x7FFFFFFF));
26 expect(int64.asLong()).toEqual(Long.getMaxValue());
31 expect(int64).toEqual(Int64.fromBits(0, 0x80000000));
32 expect(int64.asLong()).toEqual(Long.getMinValue());
37 expect(int64.asLong()).toEqual(Long.fromInt(1));
42 expect(int64.getLowBits()).toEqual(0xFFFFFFFF | 0);
43 expect(int64.getHighBits()).toEqual(0xFFFFFFFF | 0);
44 expect(int64.asLong()).toEqual(Long.fromInt(-1));
49 expect(int64.asNumber()).toEqual(1);
54 expect(int64.asNumber()).toEqual(-1);
59 expect(int64.getLowBitsUnsigned()).toEqual(0xFFFFFFFF);
60 expect(int64.getHighBits()).toEqual(0x1FFFFF);
61 expect(int64.asNumber()).toEqual(Number.MAX_SAFE_INTEGER);
66 expect(int64.asNumber()).toEqual(Number.MIN_SAFE_INTEGER);
71 expect(int64.getLowBits()).toEqual(1);
72 expect(int64.getHighBits()).toEqual(0);
77 expect(int64.getLowBits()).toEqual(1);
78 expect(int64.getHighBits()).toEqual(0);
84 expect(() => Int64.fromNumber(Number.MAX_SAFE_INTEGER + 1).asNumber())
89 expect(() => Int64.fromInt(Number.MAX_SAFE_INTEGER)).toThrow();
93 expect(() => Int64.fromInt(1.5)).toThrow();
120 expect(int64.toSignedDecimalString()).toEqual(decimals.signed);
127 expect(int64.toUnsignedDecimalString())
139 expect(int64.toHexString()).toEqual(shortHex);
146 expect(int64ToHex(signed)).toEqual(hex);
149 expect(int64ToHex(unsigned)).toEqual(hex);
156 expect(int64ToHex(Int64.fromHexString(hex))).toEqual(hex);
158 expect(int64ToHex(Int64.fromHexString('-0x1')))
165 expect(() => Int64.fromDecimalString('')).toThrow();
169 expect(() => Int64.fromDecimalString('1.5')).toThrow();
173 expect(() => Int64.fromDecimalString('0xa')).toThrow();
180 expect(low.equals(Int64.fromInt(1))).toEqual(true);
181 expect(low.equals(high)).toEqual(false);
182 expect(high.equals(Int64.getMaxValue())).toEqual(true);
186 expect(Int64.fromInt(1).hashCode()).toEqual(Int64.fromInt(1).hashCode());
187 expect(Int64.fromInt(1).hashCode())