pascal trapezoid test code added