splicing tested and documented

This commit is contained in:
Araq 2011-10-28 17:57:58 +02:00
commit 22115a2c6a
7 changed files with 72 additions and 30 deletions

View file

@ -4,6 +4,8 @@ discard """
456456
456456
Zugr5nd
egerichtetd
verichtetd
'''
"""
@ -41,3 +43,17 @@ echo()
echo mystr
mystr[4..4] = "u"
# test full replacement
mystr[.. -2] = "egerichtet"
echo mystr
mystr[0..2] = "ve"
echo mystr
var s = "abcdef"
s[1 .. -2] = "xyz"
assert s == "axyzf"