Fix failed tests

This commit is contained in:
Zalim Bashorov
2016-11-07 16:30:53 +03:00
parent 1dedb38481
commit a27572af49
7 changed files with 22 additions and 59 deletions
+5 -7
View File
@@ -1,6 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FULL_JDK
package test
@@ -15,7 +13,7 @@ fun testProperLineNumber(): String {
catch(e: AssertionError) {
val entry = (e as java.lang.Throwable).getStackTrace()!!.get(1)
val actual = "${entry.getFileName()}:${entry.getLineNumber()}"
if ("chainCalls.kt:9" != actual) {
if ("chainCalls.kt:10" != actual) {
return "fail 1: ${actual}"
}
exceptionCount++
@@ -29,7 +27,7 @@ fun testProperLineNumber(): String {
catch(e: AssertionError) {
val entry = e.stackTrace!![1]
val actual = "${entry.getFileName()}:${entry.getLineNumber()}"
if ("chainCalls.kt:24" != actual) {
if ("chainCalls.kt:25" != actual) {
return "fail 2: ${actual}"
}
exceptionCount++
@@ -42,7 +40,7 @@ fun testProperLineNumber(): String {
catch(e: AssertionError) {
val entry = e.stackTrace!![1]
val actual = "${entry.getFileName()}:${entry.getLineNumber()}"
if ("chainCalls.kt:37" != actual) {
if ("chainCalls.kt:38" != actual) {
return "fail 3: ${actual}"
}
exceptionCount++
@@ -54,7 +52,7 @@ fun testProperLineNumber(): String {
catch(e: AssertionError) {
val entry = e.stackTrace!![1]
val actual = "${entry.getFileName()}:${entry.getLineNumber()}"
if ("chainCalls.kt:49" != actual) {
if ("chainCalls.kt:50" != actual) {
return "fail 4: ${actual}"
}
exceptionCount++