mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 19:24:57 +08:00
Add testcase for bool.__new__
Add testcase for bool.__new__
This commit is contained in:
1 parent
a209169d9c
commit
02135be992
1 file changed
+2
@@ -16,6 +16,8 @@ assert not None
|
||||
|
||||
assert bool() == False
|
||||
assert bool(1) == True
|
||||
assert bool(x=True) == True
|
||||
assert bool(x=False) == False
|
||||
assert bool({}) == False
|
||||
|
||||
assert bool(NotImplemented) == True
|
||||
|
||||
Reference in new issue
Block a user