예제 #1
0
 def test_composition_2(self):
     f = V.compose(self.double, self.increment)
     self.assertEqual(f(2), 5)
예제 #2
0
 def test_composition_2(self):
     f = V.compose(self.double, self.increment)
     self.assertEqual(f(2), 5)
예제 #3
0
 def test_composition_1(self):
     f = V.compose(self.increment, self.double)
     self.assertEqual(f(2), 6)
예제 #4
0
 def test_composition_1(self):
     f = V.compose(self.increment, self.double)
     self.assertEqual(f(2), 6)