Add tests with partial classpath for script compilation

This commit is contained in:
Ilya Chernikov
2016-04-07 17:08:28 +02:00
parent 9d9fe97a8e
commit 834bb51643
3 changed files with 68 additions and 25 deletions
+16
View File
@@ -0,0 +1,16 @@
// 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
}
val hdr = "Num".decapitalize()
org.junit.Assert.assertTrue(false)
System.out.println("$hdr: $num")
val result = fib(num)