Example #1
0
 def test_cube(self):
     result = cube.vol(1.5)
     self.assertEqual(result, 3.375)
Example #2
0
 def test_vol(self):
     self.assertEqual(cube.vol(3), 27)
Example #3
0
 def test_cube3(self):
     result = cube.vol(-1)
     self.assertEqual(result, -1)
Example #4
0
 def test_cube1(self):
     result = cube.vol(4)
     self.assertEqual(result, 64)
Example #5
0
 def test_volf(self):
     self.assertEqual(cube.vol(5, 5, 5), 10)
Example #6
0
 def test_vol(self):
     self.assertEqual(cube.vol(10, 2, 5), 100)
Example #7
0
 def test_dec(self):
     self.assertEqual(cube.vol(2.2, 1, 1), 2.2)
Example #8
0
 def test_voltype(self):
     self.assertEqual(cube.vol('x', 'y', 'z'), 0)
Example #9
0
 def test_volneg(self):
     self.assertEqual(cube.vol(-10, 2, 5), 0)