mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-03-04 22:58:46 +00:00
@@ -1,11 +1,11 @@
|
||||
from nose.tools import assert_equal
|
||||
import unittest
|
||||
|
||||
|
||||
class TestMaximizingXor(object):
|
||||
class TestMaximizingXor(unittest.TestCase):
|
||||
|
||||
def test_maximizing_xor(self):
|
||||
solution = Solution()
|
||||
assert_equal(solution.max_xor(10, 15), 7)
|
||||
self.assertEqual(solution.max_xor(10, 15), 7)
|
||||
print('Success: test_maximizing_xor')
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user