loader: `MModule::load` cause build_module_importation
[nit.git] / tests / test_ropes_buffer_to_s.nit
index 4933a1b..6078961 100644 (file)
@@ -15,7 +15,7 @@
 # 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`
@@ -56,3 +56,24 @@ buffer.append "ab"
 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