示例#1
0
 def test_calculate_sphere_volume_3(self):
     model = VolumeViewModel(3, 5)
     model.set_figure_type(1)
     model.perform()
     self.assertEqual(113.097, model.get_result())
示例#2
0
 def test_calculate_cylinder_volume_3_5(self):
     model = VolumeViewModel(3, 5)
     model.set_figure_type(2)
     model.perform()
     self.assertEqual(141.372, model.get_result())
示例#3
0
 def test_calculate_cube_volume_5(self):
     model = VolumeViewModel(3, 5)
     model.set_figure_type(0)
     model.perform()
     self.assertEqual(125, model.get_result())