Commit de2a2e29 authored by Damien George's avatar Damien George
Browse files

tests: Add test for "not" of a user defined class.

parent bdbe8c9a
......@@ -15,3 +15,13 @@ print(not [])
print(not [1,])
print(not {})
print(not {1:1})
# check user instance
class A: pass
print(not A())
# check user instances derived from builtins
class B(int): pass
print(not B())
class C(list): pass
print(not C())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment