17 # print s == 'x' # error
18 # print s == c'x' # error
20 def test_cascaded_eq():
22 >>> test_cascaded_eq()
33 print 'x' == i == c'x'
34 print c'x' == i == 'x'
35 print c'x' == i == c'x'
38 print 'x' == c == c'x'
39 print c'x' == c == 'x'
40 print c'x' == c == c'x'
42 def test_cascaded_ineq():
44 >>> test_cascaded_ineq()
55 print 'a' <= i <= c'z'
56 print c'a' <= i <= 'z'
57 print c'a' <= i <= c'z'
60 print 'a' <= c <= c'z'
61 print c'a' <= c <= 'z'
62 print c'a' <= c <= c'z'
69 print 'a' < 'b' < 'c' < 'd' < c < 'y' < 'z'
71 def test_long_ineq_py():
73 >>> test_long_ineq_py()
77 print 'abcdef' < 'b' < 'c' < 'd' < 'y' < 'z'
78 print 'a' < 'b' < 'cde' < 'd' < 'y' < 'z'