Skip to content
Snippets Groups Projects
Commit 594d28d2 authored by Chris's avatar Chris
Browse files

Add isinstance check to BBoolean to make more Tests pass

parent 84a6f0e3
Branches
No related tags found
No related merge requests found
......@@ -32,6 +32,8 @@ class BBoolean:
return BBoolean(self.__value ^ other.__value)
def __eq__(self, other: 'BBoolean') -> 'BBoolean':
if not isinstance(other, BBoolean):
return BBoolean(False)
return BBoolean(self.__value == other.__value)
def __ne__(self, other: 'BBoolean') -> 'BBoolean':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment