()
| 298 | |
| 299 | |
| 300 | def test_array_collapse(): |
| 301 | assert not isinstance(m.vectorized_func(1, 2, 3), np.ndarray) |
| 302 | assert not isinstance(m.vectorized_func(np.array(1), 2, 3), np.ndarray) |
| 303 | z = m.vectorized_func([1], 2, 3) |
| 304 | assert isinstance(z, np.ndarray) |
| 305 | assert z.shape == (1,) |
| 306 | z = m.vectorized_func(1, [[[2]]], 3) |
| 307 | assert isinstance(z, np.ndarray) |
| 308 | assert z.shape == (1, 1, 1) |
| 309 | |
| 310 | |
| 311 | def test_vectorized_noreturn(): |
nothing calls this directly
no test coverage detected