Separated ScriptTest from other cli tests.

This commit is contained in:
Evgeny Gerashchenko
2013-11-20 20:43:43 +04:00
parent 46879e5a26
commit f06e46951f
5 changed files with 7 additions and 7 deletions
+10
View File
@@ -0,0 +1,10 @@
// this script expected parameter num : Int
fun fib(n: Int): Int {
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
System.out.println("fib($n)=$v")
return v
}
System.out.println("num: $num")
val result = fib(num)