()
| 55 | |
| 56 | |
| 57 | def test_invalid_input(): |
| 58 | |
| 59 | def func(x, y, z): |
| 60 | return x**2 + y**2 + z**2 - 1 |
| 61 | |
| 62 | mcubes.marching_cubes_func((-1.5, -1.5, -1.5), (1.5, 1.5, 1.5), 10, 10, 10, func, 0) |
| 63 | |
| 64 | with pytest.raises(ValueError): |
| 65 | mcubes.marching_cubes_func((0, 0, 0), (0, 0, 0), 10, 10, 10, func, 0) |
| 66 | |
| 67 | with pytest.raises(ValueError): |
| 68 | mcubes.marching_cubes_func((-1.5, -1.5, -1.5), (1.5, 1.5, 1.5), 1, 10, 10, func, 0) |
| 69 | |
| 70 | with pytest.raises(Exception): |
| 71 | mcubes.marching_cubes_func((-1.5, -1.5), (1.5, 1.5, 1.5), 10, 10, 10, func, 0) |
| 72 | |
| 73 | with pytest.raises(Exception): |
| 74 | mcubes.marching_cubes_func((-1.5, -1.5, -1.5), (1.5, 1.5), 10, 10, 10, func, 0) |
nothing calls this directly
no outgoing calls
no test coverage detected