text: import sys
  sys.path.insert(0, '../')
  import mathlib
  import numpy as np
  import math
  
  
  def test_is_inside_rectangle():
  	rect = (0,0,500,500)
  	point = (100,100)
  	point2 = (600,600)
  	point3 = (500,501)
  	point4 = (500,499)
  	inside = mathlib.is_inside_rectangle(rect, point)
  	assert inside
  	inside = mathlib.is_inside_rectangle(rect, point2)
  	assert not inside
  	inside = mathlib.is_inside_rectangle(rect, point3)
  	assert not inside
  	inside = mathlib.is_inside_rectangle(rect, point4)
  	assert inside
  	
  def test_gen_matrix_rotation():
  	vector = np.array([5,2])
  	matrix_rotation = mathlib.gen_rotation_matrix(90)
  	ans = matrix_rotation.dot(vector)
  	ninetyDegreeRotationMatrix = np.array([[math.cos(math.radians(90)),-math.sin(math.radians(90))],[math.sin(math.radians(90)),math.cos(math.radians(90))]])
  	ans2 = ninetyDegreeRotationMatrix.dot(vector)
  	assert np,logical_and(ans,ans2)
  