()
| 86 | |
| 87 | |
| 88 | def test_full_errors(): |
| 89 | full((1,), 0, device="cpu") # Doesn't error |
| 90 | assert_raises(ValueError, lambda: full((1,), 0, device="gpu")) |
| 91 | assert_raises(ValueError, lambda: full((1,), 0, dtype=int)) |
| 92 | assert_raises(ValueError, lambda: full((1,), 0, dtype="i")) |
| 93 | |
| 94 | |
| 95 | def test_full_like_errors(): |
nothing calls this directly
no test coverage detected