示例#1
0
 def test_powerset(self):
     ps = iters.powerset([1, 2])
     self.assertEqual([tuple(), (1, ), (2, ), (1, 2)], list(ps))
示例#2
0
文件: tests.py 项目: Gizmo707/fn.py
 def test_powerset(self):
     ps = iters.powerset([1,2])
     self.assertEqual([tuple(),(1,),(2,),(1,2)], list(ps))