Lines Matching refs:fromInt
897 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(0));
902 expect(accessor.getFixed64WithDefault(1, Int64.fromInt(2)))
903 .toEqual(Int64.fromInt(2));
909 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(1));
916 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(2));
933 Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
936 expect(Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
937 .toEqual(Int64.fromInt(1));
945 accessor.setFixed64(1, Int64.fromInt(2));
946 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(2));
955 accessor.setFixed64(1, Int64.fromInt(0));
963 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(1));
966 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(1));
971 expect(() => Kernel.createEmpty().setFixed64(-1, Int64.fromInt(1)))
975 accessor.setFixed64(-1, Int64.fromInt(1));
976 expect(accessor.getFixed64WithDefault(-1)).toEqual(Int64.fromInt(1));
1196 expect(accessor.getInt64WithDefault(1)).toEqual(Int64.fromInt(0));
1201 expect(accessor.getInt64WithDefault(1, Int64.fromInt(2)))
1202 .toEqual(Int64.fromInt(2));
1207 expect(accessor.getInt64WithDefault(1)).toEqual(Int64.fromInt(1));
1213 expect(accessor.getInt64WithDefault(1)).toEqual(Int64.fromInt(2));
1228 expect(accessor.getInt64WithDefault(1)).toEqual(Int64.fromInt(0));
1235 () => Kernel.createEmpty().getInt64WithDefault(-1, Int64.fromInt(1)))
1238 expect(Kernel.createEmpty().getInt64WithDefault(-1, Int64.fromInt(1)))
1239 .toEqual(Int64.fromInt(1));
1246 accessor.setInt64(1, Int64.fromInt(2));
1247 expect(accessor.getInt64WithDefault(1)).toEqual(Int64.fromInt(2));
1254 accessor.setInt64(1, Int64.fromInt(0));
1261 expect(accessor.getInt64WithDefault(1)).toEqual(Int64.fromInt(1));
1264 expect(accessor.getInt64WithDefault(1)).toEqual(Int64.fromInt(1));
1269 expect(() => Kernel.createEmpty().setInt64(-1, Int64.fromInt(1)))
1273 accessor.setInt64(-1, Int64.fromInt(1));
1274 expect(accessor.getInt64WithDefault(-1)).toEqual(Int64.fromInt(1));
1392 expect(accessor.getSfixed64WithDefault(1)).toEqual(Int64.fromInt(0));
1397 expect(accessor.getSfixed64WithDefault(1, Int64.fromInt(2)))
1398 .toEqual(Int64.fromInt(2));
1404 expect(accessor.getSfixed64WithDefault(1)).toEqual(Int64.fromInt(1));
1411 expect(accessor.getSfixed64WithDefault(1)).toEqual(Int64.fromInt(2));
1428 Kernel.createEmpty().getSfixed64WithDefault(-1, Int64.fromInt(1)))
1431 expect(Kernel.createEmpty().getSfixed64WithDefault(-1, Int64.fromInt(1)))
1432 .toEqual(Int64.fromInt(1));
1440 accessor.setSfixed64(1, Int64.fromInt(2));
1441 expect(accessor.getSfixed64WithDefault(1)).toEqual(Int64.fromInt(2));
1450 accessor.setSfixed64(1, Int64.fromInt(0));
1458 expect(accessor.getSfixed64WithDefault(1)).toEqual(Int64.fromInt(1));
1461 expect(accessor.getSfixed64WithDefault(1)).toEqual(Int64.fromInt(1));
1466 expect(() => Kernel.createEmpty().setSfixed64(-1, Int64.fromInt(1)))
1470 accessor.setSfixed64(-1, Int64.fromInt(1));
1471 expect(accessor.getSfixed64WithDefault(-1)).toEqual(Int64.fromInt(1));
1588 expect(accessor.getSint64WithDefault(1)).toEqual(Int64.fromInt(0));
1593 expect(accessor.getSint64WithDefault(1, Int64.fromInt(2)))
1594 .toEqual(Int64.fromInt(2));
1599 expect(accessor.getSint64WithDefault(1)).toEqual(Int64.fromInt(1));
1605 expect(accessor.getSint64WithDefault(1)).toEqual(Int64.fromInt(1));
1620 expect(accessor.getSint64WithDefault(1)).toEqual(Int64.fromInt(0));
1627 () => Kernel.createEmpty().getSint64WithDefault(-1, Int64.fromInt(1)))
1630 expect(Kernel.createEmpty().getSint64WithDefault(-1, Int64.fromInt(1)))
1631 .toEqual(Int64.fromInt(1));
1638 accessor.setSint64(1, Int64.fromInt(2));
1639 expect(accessor.getSint64WithDefault(1)).toEqual(Int64.fromInt(2));
1646 accessor.setSint64(1, Int64.fromInt(0));
1653 expect(accessor.getSint64WithDefault(1)).toEqual(Int64.fromInt(1));
1656 expect(accessor.getSint64WithDefault(1)).toEqual(Int64.fromInt(1));
1661 expect(() => Kernel.createEmpty().setSint64(-1, Int64.fromInt(1)))
1665 accessor.setInt64(-1, Int64.fromInt(1));
1666 expect(accessor.getSint64WithDefault(-1)).toEqual(Int64.fromInt(1));
1885 expect(accessor.getUint64WithDefault(1)).toEqual(Int64.fromInt(0));
1890 expect(accessor.getUint64WithDefault(1, Int64.fromInt(2)))
1891 .toEqual(Int64.fromInt(2));
1896 expect(accessor.getUint64WithDefault(1)).toEqual(Int64.fromInt(1));
1902 expect(accessor.getUint64WithDefault(1)).toEqual(Int64.fromInt(2));
1917 expect(accessor.getUint64WithDefault(1)).toEqual(Int64.fromInt(0));
1924 () => Kernel.createEmpty().getUint64WithDefault(-1, Int64.fromInt(1)))
1927 expect(Kernel.createEmpty().getUint64WithDefault(-1, Int64.fromInt(1)))
1928 .toEqual(Int64.fromInt(1));
1935 accessor.setUint64(1, Int64.fromInt(2));
1936 expect(accessor.getUint64WithDefault(1)).toEqual(Int64.fromInt(2));
1943 accessor.setUint64(1, Int64.fromInt(0));
1950 expect(accessor.getUint64WithDefault(1)).toEqual(Int64.fromInt(1));
1953 expect(accessor.getUint64WithDefault(1)).toEqual(Int64.fromInt(1));
1958 expect(() => Kernel.createEmpty().setUint64(-1, Int64.fromInt(1)))
1962 accessor.setUint64(-1, Int64.fromInt(1));
1963 expect(accessor.getUint64WithDefault(-1)).toEqual(Int64.fromInt(1));