def test_simple2(self): # arrange trees = [0, 3, 5, 5, 6, 9] L = 10 W = 1 # act res = planting_trees(trees, L, W) # assert self.assertEqual(res, 9.28538328578604)
def test_simple(self): # arrange trees = [0, 1, 10, 10] L = 10 W = 1 # act res = planting_trees(trees, L, W) # assert self.assertEqual(res, 2.414213562373095)