def test_close_neighbor_approx(root, small_grid):
    """Tolerate floating point errors when calculating common borders."""
    root.height += 30
    a, b, c, d = small_grid
    e, f, g = create_nodes("e f g")
    c.flip_with(f)
    b.parent.add_child(e)
    c.parent.add_child(g)
    assert g.close_down is e
Tolerate floating point errors when calculating common borders.
test/layouts/test_plasma.py