mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 02:48:02 +00:00
Move xor challenge solution to a class (#143)
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user