X-Git-Url: http://nitlanguage.org diff --git a/tests/bench_string_tos.nit b/tests/bench_string_tos.nit index 1d59691..dbc8ac9 100644 --- a/tests/bench_string_tos.nit +++ b/tests/bench_string_tos.nit @@ -14,9 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +var n = 10 +if args.not_empty then n = args.first.to_i + var s = "*" var i = 0 -while i < 8 do +while i < n do s = ["Je dis «", s, "» et redis «", s, "» et trois fois de plus : «", s, s, s, "».\n"].to_s i = i + 1 end