()
| 93 | |
| 94 | |
| 95 | def test_full_like_errors(): |
| 96 | full_like(asarray(1), 0, device="cpu") # Doesn't error |
| 97 | assert_raises(ValueError, lambda: full_like(asarray(1), 0, device="gpu")) |
| 98 | assert_raises(ValueError, lambda: full_like(asarray(1), 0, dtype=int)) |
| 99 | assert_raises(ValueError, lambda: full_like(asarray(1), 0, dtype="i")) |
| 100 | |
| 101 | |
| 102 | def test_linspace_errors(): |
nothing calls this directly
no test coverage detected