micropython

Annotated tests/compare.py

634:c1c95a183e21
2013-01-14 Paul Boddie Moved common logic into a separate method.
paul@121 1
#!/usr/bin/env python
paul@121 2
paul@121 3
a = 1
paul@121 4
b = 2
paul@121 5
c = 3
paul@121 6
paul@232 7
result_1 = 0
paul@232 8
result_2 = 0
paul@232 9
paul@232 10
if a < b < c:
paul@232 11
    result_1 = 1
paul@232 12
if c > b > a:
paul@232 13
    result_2 = 2
paul@121 14
paul@121 15
# vim: tabstop=4 expandtab shiftwidth=4