new_contents: from gaphas.geometry import (
      distance_rectangle_point,
      intersect_line_line,
      point_on_rectangle,
  )
  
  
  def test_distance_rectangle_point():
      assert distance_rectangle_point((2, 0, 2, 2), (0, 0)) == 2
  
  
  def test_distance_point_in_rectangle():
      assert distance_rectangle_point((0, 0, 2, 2), (1, 1)) == 0
  
  
  def test_point_on_rectangle():
      assert point_on_rectangle((2, 2, 2, 2), (0, 0)) == (2, 2)
      assert point_on_rectangle((2, 2, 2, 2), (3, 0)) == (3, 2)
  
  
  def test_intersect_line_line():
      assert intersect_line_line((3, 0), (8, 10), (0, 0), (10, 10)) == (6, 6)
      assert intersect_line_line((0, 0), (10, 10), (3, 0), (8, 10)) == (6, 6)
      assert intersect_line_line((0, 0), (10, 10), (8, 10), (3, 0)) == (6, 6)
      assert intersect_line_line((8, 10), (3, 0), (0, 0), (10, 10)) == (6, 6)
  
  
  def test_intersect_line_line_not_crossing():
      assert intersect_line_line((0, 0), (0, 10), (3, 0), (8, 10)) is None
      assert intersect_line_line((0, 0), (0, 10), (3, 0), (3, 10)) is None
  
subject: Add tests for geometry module