Skip to content
Snippets Groups Projects
Commit 1b0cd9d0 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

tests for Proxy

parent 45900913
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,9 @@ class Proxy(tp.Generic[T]):
def __eq__(self, other) -> bool:
return self.__obj == other
def __ne__(self, other) -> bool:
return self.__obj != other
def __or__(self, other):
return self.__obj | other
......
......@@ -23,3 +23,4 @@ class TestProxy(unittest.TestCase):
self.assertEqual(a | 1, 3)
self.assertEqual(a << 1, 4)
self.assertEqual(a >> 1, 1)
self.assertNotEqual(a, 6)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment