# Checks the immutability of the strings returned by `RopeBuffer.to_s`.
module test_ropes_buffer_to_s
-import standard
+import core
# Note: In this sort of test, never print the string more than once: the string
# itself may cache an flatten representation of itself when `print` calls `to_s`
s = buffer.to_s
buffer.append("*" * (maxlen -1))
print s
+
+sys.stdout.write "`reverse`: "
+buffer.clear
+buffer.append "xyz"
+s = buffer.to_s
+buffer.reverse
+print s
+
+sys.stdout.write "`upper`: "
+buffer.clear
+buffer.append "foo"
+s = buffer.to_s
+buffer.upper
+print s
+
+sys.stdout.write "`lower`: "
+buffer.clear
+buffer.append "BAR"
+s = buffer.to_s
+buffer.lower
+print s