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,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (a &&<caret> b) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (b && a) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (a <caret>and b) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (b and a) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (a <caret>|| b) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (b || a) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (a <caret>or b) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (b or a) {}
}
}
@@ -1,6 +1,8 @@
// IS_APPLICABLE: false
fun doSomething<T>(a: T) {}
fun main() {
for (elt<caret> in array(1, 2, 3)) {
println("Hello")
for (elt<caret> in 0..3) {
doSomething("Hello")
}
}
}
@@ -1,6 +1,9 @@
// IS_APPLICABLE: false
fun doSomething<T>(a: T) {}
fun main() {
if <caret>"test" is String {
println("Hello")
doSomething("Hello")
}
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int, c: Int, d: Int, e: Int): Int {
return a + b + <caret>c + d + e
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int, c: Int, d: Int, e: Int): Int {
return a + c + b + d + e
}
}
@@ -1,5 +1,7 @@
// IS_APPLICABLE: false
fun doSomething<T>(a: T) {}
fun main() {
val c = 500
println(<caret>"Today is Friday")
}
doSomething(<caret>"Today is Friday")
}
@@ -2,4 +2,5 @@ fun main(): Boolean {
if (5 != <caret>20) {
return false
}
}
return true
}
@@ -2,4 +2,5 @@ fun main(): Boolean {
if (20 != 5) {
return false
}
}
return true
}
@@ -1,6 +1,8 @@
// IS_APPLICABLE: false
fun main() {
fun doSomething<T>(a: T) {}
fun main(x: Int) {
if (x !in 5..6) {
println("test")
doSomething("test")
}
}
}
@@ -1,6 +1,8 @@
// IS_APPLICABLE: false
fun main() {
fun doSomething<T>(a: T) {}
fun main(x: Int) {
if (x !is Int) {
println("test")
doSomething("test")
}
}
}
@@ -1,4 +1,5 @@
// IS_APPLICABLE: false
// DISABLE-ERRORS
fun new(x: Int, y: Int): Int {
return y <caret>-
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return <caret>a + b
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return b + a
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return <caret>a + b
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return b + a
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return <caret>a plus b
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return b plus a
}
}
@@ -1,6 +1,8 @@
// IS_APPLICABLE: false
fun doSomething<T>(a: T) {}
fun main() {
for (i in 1<caret>..10) {
println("Hello World")
doSomething("Hello World")
}
}
}
@@ -1,6 +1,8 @@
// IS_APPLICABLE: false
fun doSomething<T>(a: T) {}
fun main() {
for (i in 1<caret> rangeTo 10) {
println("Hello World")
doSomething("Hello World")
}
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return <caret>a times b
}
}
@@ -1,3 +1,3 @@
fun main() {
fun test(a: Int, b: Int): Int {
return b times a
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (a <caret>xor b) {}
}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
fun neq(a: Boolean, b: Boolean) {
if (b xor a) {}
}
}