test_dsdf.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:codecad 作者: bluecube 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号