(self)
| 122 | |
| 123 | class TestEquality(mlx_tests.MLXTestCase): |
| 124 | def test_array_eq_array(self): |
| 125 | a = mx.array([1, 2, 3]) |
| 126 | b = mx.array([1, 2, 3]) |
| 127 | c = mx.array([1, 2, 4]) |
| 128 | self.assertTrue(mx.all(a == b)) |
| 129 | self.assertFalse(mx.all(a == c)) |
| 130 | |
| 131 | def test_array_eq_scalar(self): |
| 132 | a = mx.array([1, 2, 3]) |