ubsuny / 23-Homework6G3

This is the main repository for 23-Homework6G3 involving calculus.
https://github.com/ubsuny/23-Homework6G3
Apache License 2.0
0 stars 7 forks source link

Unit test for task 1 and task 2 test_calculus.py #47

Closed reshnashrestha closed 8 months ago

reshnashrestha commented 8 months ago

I have included 8 unit test cases for functions used in task1 and task2. This unit test cases are for following functions:

  1. simpson
  2. trapezoid
  3. adaptive trapezoid
  4. root simple
  5. root bisection
  6. root secant
  7. root tangent
  8. root print header

I tried for root print step and root max steps, but multiple assertion issues arose so I am leaving them as comment there. Also, I think that in the class, we are told to do unit tests for any two functions from task 2. So, I guess I did my task under task 3