mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-02 23:48:02 +00:00
19 lines
344 B
Python
19 lines
344 B
Python
import unittest
|
|
|
|
|
|
class TestMaximizingXor(unittest.TestCase):
|
|
|
|
def test_maximizing_xor(self):
|
|
solution = Solution()
|
|
self.assertEqual(solution.max_xor(10, 15), 7)
|
|
print('Success: test_maximizing_xor')
|
|
|
|
|
|
def main():
|
|
test = TestMaximizingXor()
|
|
test.test_maximizing_xor()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|