コード例 #1
0
 def test_areaquadrado_lado_2(self):
     result = calcareas.areaquadrado(2)
     expected = 4
     self.assertEqual(expected, result)
コード例 #2
0
 def test_areaquadrado_lado_10(self):
     result = calcareas.areaquadrado(10)
     expected = 100
     self.assertEqual(expected, result)
コード例 #3
0
 def test_areaquadrado_lado_2_5(self):
     result = calcareas.areaquadrado(2.5)
     expected = 6.25
     self.assertEqual(expected, result)
コード例 #4
0
 def test_areaquadrado_lado_3(self):
     result = calcareas.areaquadrado(3)
     expected = 9
     self.assertEqual(expected, result)