nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.7.4
[nit.git]
/
tests
/
test_string_long.nit
diff --git
a/tests/test_string_long.nit
b/tests/test_string_long.nit
index
0429f07
..
6bfb034
100644
(file)
--- a/
tests/test_string_long.nit
+++ b/
tests/test_string_long.nit
@@
-14,17
+14,21
@@
# 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 standard
+#alt1 import standard::ropes
var s = "Bonjour !\n"
var s = "Bonjour !\n"
-var r = new String.with_capacity(50)
-var r2 = ""
+var r: Buffer = new FlatBuffer.with_capacity(50)
+#alt1 r = new RopeBuffer
+var r2: Buffer = new FlatBuffer
+#alt1 r2 = new RopeBuffer
var i = 0
while i < 5000 do
var j = 0
while j < s.length do
var i = 0
while i < 5000 do
var j = 0
while j < s.length do
- r.add(s[j])
- r2.add(s[j])
+ r.add(s.chars[j])
+ r2.add(s.chars[j])
j = j + 1
end
i = i + 1
j = j + 1
end
i = i + 1