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"

View file

@ -1,6 +1,5 @@
discard """
output: '''
derived class
output: '''derived class
base class
'''
"""

View file

@ -1,6 +1,5 @@
discard """
output: '''
derived class 2
output: '''derived class 2
base class
'''
"""

View file

@ -1,6 +1,5 @@
discard """
output: '''
246
output: '''246
'''
"""

View file

@ -1,6 +1,5 @@
discard """
output: '''
246
output: '''246
xyzabc
'''
"""