Beispiel #1
0
 def test_basic(self):
     cur = cc(lambda a, b, c: [a, b, c])
     cur = cur << 'aaa' << 'bbb'
     self.assertEqual(cur('ccc'), ['aaa', 'bbb', 'ccc'])
Beispiel #2
0
 def test_named_args(self):
     cur = cc(lambda a, b='hogeeee', c='foooo': [a, b, c])
     cur = cur << 'a' << ('c', 'c')
     self.assertEqual(cur(b='boee'), ['a', 'boee', 'c'])