Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / test_flatrope.nit
index 79b719f..19e550c 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+#alt1 import core
+
 var st = "quick brown fox over the lazy dog"
 
 print st
 
-var pr = st.prepend("The ")
+var pr = "The " + st
 
 print pr
 
@@ -24,8 +26,8 @@ pr = st.insert_at(" jumps", 15)
 
 print pr
 
-pr = st.append(".")
+pr = st + "."
 
 print pr
 
-print st.insert_at(" jumps", 15). prepend("The ").append(".")
+print "The " + st.insert_at(" jumps", 15) + "."