Lines Matching refs:fromInt
36 const int64 = Int64.fromInt(1);
37 expect(int64.asLong()).toEqual(Long.fromInt(1));
41 const int64 = Int64.fromInt(-1);
44 expect(int64.asLong()).toEqual(Long.fromInt(-1));
48 const int64 = Int64.fromInt(1);
53 const int64 = Int64.fromInt(-1);
70 const int64 = Int64.fromInt(1);
76 const int64 = Int64.fromLong(Long.fromInt(1));
89 expect(() => Int64.fromInt(Number.MAX_SAFE_INTEGER)).toThrow();
93 expect(() => Int64.fromInt(1.5)).toThrow();
178 const low = Int64.fromInt(1);
180 expect(low.equals(Int64.fromInt(1))).toEqual(true);
186 expect(Int64.fromInt(1).hashCode()).toEqual(Int64.fromInt(1).hashCode());
187 expect(Int64.fromInt(1).hashCode())
188 .not.toEqual(Int64.fromInt(2).hashCode());