Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestCase:
- def test(func, param, res):
- assert func(param) == res, "Error"
- test = TestCase
- params = 3, 18.8 # radius, circle length
- test.test(circle_length, *params)
- В цикле меняешь параметры (предварительно подобранные) и смотришь на ошибки
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement