nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
benchmarks/strings: continue in case of error
[nit.git]
/
tests
/
test_flatrope.nit
diff --git
a/tests/test_flatrope.nit
b/tests/test_flatrope.nit
index
79b719f
..
8b1d6bc
100644
(file)
--- 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.
# See the License for the specific language governing permissions and
# limitations under the License.
+#alt1 import core
+#alt1 import buffered_ropes
+
var st = "quick brown fox over the lazy dog"
print st
var st = "quick brown fox over the lazy dog"
print st
-var pr = st.prepend("The ")
+var pr = "The " + st
print pr
print pr
@@
-24,8
+27,8
@@
pr = st.insert_at(" jumps", 15)
print pr
print pr
-pr = st.append(".")
+pr = st + "."
print pr
print pr
-print st.insert_at(" jumps", 15). prepend("The ").append(".")
+print "The " + st.insert_at(" jumps", 15) + "."