Minor. removed several tests with error calls.

This commit is contained in:
Stanislav Erokhin
2016-06-10 17:27:09 +03:00
parent c414f456a4
commit 03241419bd
22 changed files with 1 additions and 582 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2015 JetBrains s.r.o.
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -120,8 +120,4 @@ public final class OperatorOverloadingTest extends SingleFileTranslationTest {
public void testOverloadUnaryOperationsViaExtensionFunctions() throws Exception {
fooBoxTest();
}
public void testOverloadByLambda() throws Exception {
checkFooBoxIsOk();
}
}
@@ -12,8 +12,6 @@ fun testExtensionFunctionAsCompareTo() {
val x: B = B(100)
val y: B = B(200)
assertEquals(false, x < y, "ext fun: x < y")
assertEquals(true, x > y, "ext fun: x > y")
assertEquals(1, x.compareTo(y), "ext fun: x compareTo y")
}
@@ -1,19 +0,0 @@
// EA-56241
package foo
class A(val v: Int)
val times: A.(Int) -> Int = { a -> this.v * a }
fun test(div: A.(Int) -> Int) = A(20) / 4
fun box(): String {
val compareTo: A.(A) -> Int = { a: A -> this.v - a.v }
assertEquals(28, A(4) * 7)
assertEquals(5, test { this.v / it })
assertEquals(false, A(49) <= A(7))
assertEquals(true, A(5) > A(1))
return "OK"
}