def test_failure(self):
# The bounding boxes intersect but the lines do not.
nodes1 = np.asfortranarray([
[0.0, 0.0],
[1.0, 1.0],
])
curve1 = subdivided_curve(nodes1)
lin1 = make_linearization(curve1, 0.0)
nodes2 = np.asfortranarray([
[1.75, -0.75],
[0.75, 0.25],
])
curve2 = subdivided_curve(nodes2)
lin2 = make_linearization(curve2, 0.0)
intersections = []
self.assertIsNone(
self._call_function_under_test(lin1, lin2, intersections))
self.assertEqual(len(intersections), 0)
评论列表
文章目录