diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-27 23:15:32 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-27 23:15:32 +0000 |
commit | 4e8dc8c41b6f68269571fe218f7292fc86cf3ddb (patch) | |
tree | 535eb325a69877eae7caba92d30fd0da5640fff7 /tests/basics/unary_op.py | |
parent | addf60b2e6176d8cce23c5608dee10ce196db94b (diff) |
py: Add unary op not for NoneType, bool, tuple, list, dict; fix for int.
Diffstat (limited to 'tests/basics/unary_op.py')
-rw-r--r-- | tests/basics/unary_op.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/basics/unary_op.py b/tests/basics/unary_op.py new file mode 100644 index 000000000..9846285d5 --- /dev/null +++ b/tests/basics/unary_op.py @@ -0,0 +1,12 @@ +print(not None) +print(not False) +print(not True) +print(not 0) +print(not 1) +print(not -1) +print(not ()) +print(not (1,)) +print(not []) +print(not [1,]) +print(not {}) +print(not {1:1}) |