Example #1
0
 def test_sqre_diff_1(self):
     a = sqre_diff(1, 2)
     self.assertEqual(a, 1)
Example #2
0
 def test_sqre_diff_2(self):
     a = sqre_diff(0, 0)
     self.assertEqual(a, 0)
Example #3
0
 def test_sqre_diff_3(self) :
     sqrd = sqre_diff(0, 2)
     self.assertEqual(sqrd, 4)
Example #4
0
 def test_sqre_diff_3(self):
     a = sqre_diff(5, 1)
     self.assertEqual(a, 16)
Example #5
0
 def test_sqre_diff_1(self) :
     sqrd = sqre_diff(1, 2)
     self.assertEqual(sqrd, 1)
Example #6
0
 def test_sqre_diff_2(self) :
     sqrd = sqre_diff(2, 2)
     self.assertEqual(sqrd, 0)
Example #7
0
 def test_sqre_diff_2 (self) :
     x = 1
     y = 1
     i = sqre_diff (x,y)
     j = (x-y)*(x-y)
     self.assertEqual(i, j)
Example #8
0
 def test_sqre_diff_3 (self) :
     x = 4
     y = 2
     i = sqre_diff (x,y)
     j = (x-y)*(x-y)
     self.assertEqual(i, j)
Example #9
0
 def test_sqre_diff_3(self):
     a = 2.0
     b = 4.0
     self.assert_(sqre_diff(a, b) == 4.0)
Example #10
0
 def test_sqre_diff_1 (self) :
     x = 0
     y = 4
     i = sqre_diff (x,y)
     j = (x-y)*(x-y)
     self.assertEqual(i, j)
Example #11
0
 def test_sqre_diff_2(self):
     a = 1.1
     b = 1
     self.assert_(str(sqre_diff(a, b)) == "0.01")
Example #12
0
 def test_sqre_diff_1(self):
     a = 5
     b = 4
     self.assert_(sqre_diff(a, b) == 1)
 def test_sqre_diff_3 (self) :
     v = sqre_diff (5, 3)
     self.assert_(v == 4)
 def test_sqre_diff_2 (self) :
     v = sqre_diff (2, 1)
     self.assert_(v == 1)
 def test_sqre_diff_1 (self) :
     v = sqre_diff (0, 0)
     self.assert_(v == 0)