(self)
| 2259 | self.assertEqual(x.real.item(), 1.0) |
| 2260 | |
| 2261 | def test_large_indices(self): |
| 2262 | x = mx.array([0, 1, 2]) |
| 2263 | with self.assertRaises(ValueError): |
| 2264 | x[: 2**32] |
| 2265 | with self.assertRaises(ValueError): |
| 2266 | x[2**32] |
| 2267 | |
| 2268 | |
| 2269 | if __name__ == "__main__": |