Move xor challenge solution to a class (#143)

This commit is contained in:
Donne Martin
2017-02-04 19:07:06 -05:00
committed by GitHub
parent 098aaf196d
commit cf48629858
3 changed files with 31 additions and 24 deletions

View File

@@ -4,7 +4,8 @@ from nose.tools import assert_equal
class TestMaximingXor(object):
def test_maximizing_xor(self):
assert_equal(max_xor(10, 15), 7)
solution = Solution()
assert_equal(solution.max_xor(10, 15), 7)
print('Success: test_maximizing_xor')