libevent: rename `bind_to` to the more precise `bind_tcp`
[nit.git] / tests / test_string_long.nit
index 0429f07..2e03070 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
 var s = "Bonjour !\n"
-var r = new String.with_capacity(50)
-var r2 = ""
+var r: Buffer = new FlatBuffer.with_capacity(50)
+var r2: Buffer = new FlatBuffer
 
 var i = 0
-while i < 5000 do
+while i < 1000 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