X-Git-Url: http://nitlanguage.org diff --git a/tests/bench_tak.nit b/tests/bench_tak.nit index 5266e93..ac128d3 100644 --- a/tests/bench_tak.nit +++ b/tests/bench_tak.nit @@ -15,7 +15,7 @@ # limitations under the License. -meth tak(x: Int, y: Int, z: Int): Int +fun tak(x: Int, y: Int, z: Int): Int do if not y < x then return z @@ -27,4 +27,7 @@ do end end -printn(tak(37,12,6)) +var n = 17 +if args.not_empty then n = args.first.to_i + +print(tak(n,12,6))