예제 #1
0
 def test_sigma_empty(self):
     self.assertEquals(lipsum._sigma([]), 0)
예제 #2
0
 def test_sigma(self):
     self.assertEquals(lipsum._sigma([6, 6, 4, 4]), 1)
     self.assertEquals(lipsum._sigma([1, 2, 3, 4]), math.sqrt(1.25))