Fixed tests after adding error checking for intention tests.

This commit is contained in:
Zalim Bashorov
2014-04-01 20:49:24 +04:00
parent 8d19c7309b
commit b43958f4b3
399 changed files with 1376 additions and 906 deletions
@@ -1,7 +1,9 @@
fun doSomething<T>(a: T) {}
fun test() {
class Test{
fun contains(a: Int) : Boolean = true
}
val test = Test()
println(test.c<caret>ontains(0).toString())
doSomething(test.c<caret>ontains(0).toString())
}
@@ -1,7 +1,9 @@
fun doSomething<T>(a: T) {}
fun test() {
class Test{
fun contains(a: Int) : Boolean = true
}
val test = Test()
println((0 in test).toString())
doSomething((0 in test).toString())
}
@@ -1,7 +1,9 @@
fun doSomething<T>(a: T) {}
fun test() {
class Test{
fun contains(fn: () -> Boolean) : Boolean = true
}
val test = Test()
println(test.c<caret>ontains { true }.toString())
doSomething(test.c<caret>ontains { true }.toString())
}
@@ -1,7 +1,9 @@
fun doSomething<T>(a: T) {}
fun test() {
class Test{
fun contains(fn: () -> Boolean) : Boolean = true
}
val test = Test()
println(({ true } in test).toString())
doSomething(({ true } in test).toString())
}
@@ -1,4 +1,5 @@
// SHOULD_FAIL_WITH: invalid.arguments
// ERROR: Cannot find a parameter with this name: c
fun test() {
class Test{
fun contains(a: Int=1, b: Int=2): Boolean = true
@@ -1,4 +1,5 @@
// SHOULD_FAIL_WITH: duplicate.or.missing.arguments
// ERROR: No value passed for parameter b
fun test() {
class Test{
fun contains(a: Int, b: Int): Boolean = true