findbits converted to python3 + tests
This commit is contained in:
1 parent
aa6fc60a22
commit
ba6f58cc05
3 files changed
+28
-29
No files matched your search
Regular → Executable
+2
-3
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from itertools import imap
|
||||
import unittest, sys, findbits
|
||||
|
||||
class TestFindBits(unittest.TestCase):
|
||||
@@ -46,7 +45,7 @@ class TestFindBits(unittest.TestCase):
|
||||
|
||||
def commutative_test(self, operation, cases):
|
||||
self.unary_operation_test(operation, cases)
|
||||
self.unary_operation_test(operation, imap(reversed, cases))
|
||||
self.unary_operation_test(operation, map(reversed, cases))
|
||||
|
||||
def unary_operation_test(self, operation, cases):
|
||||
for case_in, case_out in cases:
|
||||
|
||||
Reference in new issue
Block a user