nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: Nit objects to plain JSON
[nit.git]
/
tests
/
test_mem.nit
diff --git
a/tests/test_mem.nit
b/tests/test_mem.nit
index
9487e82
..
dc9d167
100644
(file)
--- a/
tests/test_mem.nit
+++ b/
tests/test_mem.nit
@@
-27,4
+27,7
@@
fun 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))