Пример #1
0
 def test_three(self):
     res = distance(0, 1, 1, 0)
     self.assertEqual(res, 2**0.5)
Пример #2
0
 def test_one(self):
     res = distance(0, 0, 0, 1)
     self.assertEqual(res, 1)
Пример #3
0
 def test_two(self):
     res = distance(0, 0, 1, 1)
     self.assertEqual(res, 2**0.5)
Пример #4
0
 def test_zero(self):
     res = distance(0, 0, 0, 0)
     self.assertEqual(res, 0)