Пример #1
0
 def test_variance_empty(self):
     self.assertEquals(lipsum._variance([]), 0)
Пример #2
0
 def test_variance(self):
     self.assertEquals(lipsum._variance([6, 6, 4, 4]), 1)
     self.assertEquals(lipsum._variance([1, 2, 3, 4]), 1.25)