def test_dsdf_exact(eval_buffer):
""" Following the direction ends up on the surface in a single step
This test conditionally xfails if the DSDF of this shape is not exact.
`test_dsdf_approximate` ensures that the approximation is correct """
for v in eval_buffer.array:
if v[1]["w"] != pytest.approx(0, abs=1e-5):
pytest.xfail()
评论列表
文章目录