X-Git-Url: http://nitlanguage.org diff --git a/tests/test_flatrope.nit b/tests/test_flatrope.nit index 79b719f..1e54bee 100644 --- a/tests/test_flatrope.nit +++ b/tests/test_flatrope.nit @@ -12,11 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +#alt1 import standard +#alt1 import buffered_ropes + var st = "quick brown fox over the lazy dog" print st -var pr = st.prepend("The ") +var pr = "The " + st print pr @@ -24,8 +27,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) + "."