Advertisement
UniQuet0p1

Untitled

Mar 29th, 2021
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class TestCase:
  2. def test(func, param, res):
  3. assert func(param) == res, "Error"
  4.  
  5. test = TestCase
  6. params = 3, 18.8 # radius, circle length
  7. test.test(circle_length, *params)
  8.  
  9. В цикле меняешь параметры (предварительно подобранные) и смотришь на ошибки
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement