()
| 1357 | |
| 1358 | |
| 1359 | def test_broadcast_to_array(): |
| 1360 | x = np.random.default_rng().integers(10, size=(5, 1, 6)) |
| 1361 | |
| 1362 | for shape in [(5, 0, 6), (5, 4, 6), (2, 5, 1, 6), (3, 4, 5, 4, 6)]: |
| 1363 | a = np.broadcast_to(x, shape) |
| 1364 | d = broadcast_to(x, shape) |
| 1365 | |
| 1366 | assert_eq(a, d) |
| 1367 | |
| 1368 | |
| 1369 | def test_broadcast_to_scalar(): |
nothing calls this directly
no test coverage detected