Lichen

tests/string.py

294:79c82d827bbe
2016-12-01 Paul Boddie Fixed the xrange implementation, removing incorrect NO_END interpretation, adding start and end validation, adding string representations. Moved range from the iterable module to the span module. Added a test of ranges.
     1 s = "Hello"     2 s += " world!"     3 print s                     # Hello world!     4      5 s2 = "Hello worlds!"     6 print s2                    # Hello worlds!     7 print s < s2                # True     8 print s <= s2               # True     9 print s == s2               # False    10 print s != s2               # True    11 print s >= s2               # False    12 print s > s2                # False    13     14 print s[0]                  # H    15 print s[-1]                 # !