Lichen

tests/buffer.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 b = buffer()     2 b.append("Hello")     3 b.append(" ")     4 b.append("world")     5 b.append("!")     6 print b                 # Hello world!     7      8 b = buffer(["Hello "])     9 print repr(b)           # buffer(["Hello "])    10     11 b2 = buffer(["world!"])    12 b.append(b2)    13 print b                 # Hello world!