micropython

Change of tests/compare2.py

131:b62d613c3ca1
tests/compare2.py
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/compare2.py	Sat Aug 23 22:32:17 2008 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +#!/usr/bin/env python
     1.5 +
     1.6 +a = 1
     1.7 +b = 2
     1.8 +c = 3
     1.9 +
    1.10 +class X:
    1.11 +    def __contains__(self, other):
    1.12 +        return 1
    1.13 +
    1.14 +x = X()
    1.15 +
    1.16 +a == x != b
    1.17 +a is x is not b
    1.18 +a in x
    1.19 +
    1.20 +# vim: tabstop=4 expandtab shiftwidth=4