Beispiel #1
0
 def test_surface_area_of_cube_negative(self):
     result = math_functions.surface_area_of_cube(-1)
     expected = None
     self.assertEqual(expected, result)
Beispiel #2
0
 def test_surface_area_of_cube_zero(self):
     result = math_functions.surface_area_of_cube(0)
     expected = None
     self.assertEqual(expected, result)
Beispiel #3
0
 def test_surface_area_of_cube(self):
     result = math_functions.surface_area_of_cube(6)
     expected = 216
     self.assertEqual(expected, result)
Beispiel #4
0
 def test_surface_area_of_cube_halve(self):
     result = math_functions.surface_area_of_cube(.5)
     expected = 1.5
     self.assertEqual(expected, result)
Beispiel #5
0
 def test_surface_area_of_cube_half(self):
     """ area of cube """
     result = math_functions.surface_area_of_cube(0.5)
     expected = 1.5
     self.assertEqual(expected, result)