nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: extends test_seq and bench_seq with CircularArray
[nit.git]
/
tests
/
test_mem.nit
diff --git
a/tests/test_mem.nit
b/tests/test_mem.nit
index
f1e95f8
..
dc9d167
100644
(file)
--- 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.
# 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
do
var a: List[Int]
if n > 0 then
@@
-27,4
+27,7
@@
meth foo(n: Int): List[Int]
return a
end
return a
end
-print(foo(23))
+var n = 10
+if args.not_empty then n = args.first.to_i
+
+print(foo(n))