From 4e8dc8c41b6f68269571fe218f7292fc86cf3ddb Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 27 Jan 2014 23:15:32 +0000 Subject: py: Add unary op not for NoneType, bool, tuple, list, dict; fix for int. --- tests/basics/unary_op.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/basics/unary_op.py (limited to 'tests') 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}) -- cgit v1.2.3