nitcc: tests script return non-zero on failure (print is not enough)
[nit.git] / tests / bench_string_append.nit
index a08bfb6..2fec554 100644 (file)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-var n = 7
+var n = 4
 if not args.is_empty then
        n = args.first.to_i
 end
@@ -22,7 +22,7 @@ end
 var s = "*"
 var i = 0
 while i < n do
-       var s2 = new Buffer.from("Je dis «")
+       var s2: Buffer = new FlatBuffer.from("Je dis «")
        s2.append(s)
        s2.append("» et redis «")
        s2.append(s)