tests/compare_equality.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/compare_equality.py Sun May 31 18:44:40 2009 +0200 1.3 @@ -0,0 +1,21 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +a = 1 1.7 +b = 2 1.8 + 1.9 +class X: 1.10 + def __contains__(self, other): 1.11 + return 1 1.12 + 1.13 +x = X() 1.14 + 1.15 +result_1 = 0 1.16 +result_2 = 2 1.17 + 1.18 +if a != x != b: 1.19 + result_1 = 1 1.20 + 1.21 +if a == x != b: 1.22 + result_2 = 0 1.23 + 1.24 +# vim: tabstop=4 expandtab shiftwidth=4