summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-30 01:29:32 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-30 01:29:32 -0800
commitb25711ea8fdc1588b5a69f7d0941de09b50fa28c (patch)
treedb7cd93c99583a858ef94b3dab95b882832da251 /tests
parentcdd2c62e07549e36dba00bc37d7ba7a4cd41ad50 (diff)
parentc1d9bbc3453454aceb28f51e72e4aeb8ef1c12eb (diff)
Merge pull request #238 from pfalcon/bool_len
Implement __bool__ and __len__ via unary_op virtual method for all types.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/true-value.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/true-value.py b/tests/basics/true-value.py
index 6ba410ddc..1dd547f32 100644
--- a/tests/basics/true-value.py
+++ b/tests/basics/true-value.py
@@ -3,9 +3,18 @@
if not False:
print("False")
+if not None:
+ print("None")
+
if not 0:
print("0")
+if not 0.0:
+ print("float 0")
+
+if not 0+0j:
+ print("complex 0")
+
if not "":
print("Empty string")
if "foo":