nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gitlab-ci: add mongo as service
[nit.git]
/
tests
/
bench_fib.nit
diff --git
a/tests/bench_fib.nit
b/tests/bench_fib.nit
index
a67cdc5
..
8c7d4da
100644
(file)
--- a/
tests/bench_fib.nit
+++ b/
tests/bench_fib.nit
@@
-17,7
+17,7
@@
# The fibbonacci program
redef class Int
# The fibbonacci program
redef class Int
- meth fib: Int
+ fun fib: Int
# Unefficient recursive implementation
do
if self <= 0 then
# Unefficient recursive implementation
do
if self <= 0 then
@@
-30,7
+30,7
@@
redef class Int
end
end
end
end
-var n = 10
+var n = 20
if not args.is_empty then
n = args.first.to_i
end
if not args.is_empty then
n = args.first.to_i
end