X-Git-Url: http://nitlanguage.org diff --git a/tests/test_mem.nit b/tests/test_mem.nit index f1e95f8..dc9d167 100644 --- a/tests/test_mem.nit +++ b/tests/test_mem.nit @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -meth foo(n: Int): List[Int] +fun foo(n: Int): List[Int] do var a: List[Int] if n > 0 then @@ -27,4 +27,7 @@ meth foo(n: Int): List[Int] return a end -print(foo(23)) +var n = 10 +if args.not_empty then n = args.first.to_i + +print(foo(n))