Exercise: Try it Yourself
Test math.sqrt() and math.pow().
import unittest
import math
class
MathTest
(
unittest.TestCase
):
def
test_sqrt
(self):
self.assertEqual(5, math.sqrt(25))
self.assertEqual(0, math.sqrt(0))
#edge case
def
test_pow
(self):
#
TODO
Write some tests of
math.pow(x,n)