fix tests in org.jetbrains.kotlin.js.test.semantics

This commit is contained in:
Michael Nedzelsky
2015-09-07 22:21:52 +03:00
parent aa44606663
commit f6892580f6
57 changed files with 167 additions and 167 deletions
@@ -2,29 +2,29 @@ package foo
public class A
fun A(a: Int){}
internal fun A(a: Int){}
public class B(a: Int)
fun B(){}
internal fun B(){}
fun C(a: Int){}
internal fun C(a: Int){}
public class C
fun D(){}
internal fun D(){}
public class D(a: Int)
//Testing
fun testClass(name: String, f: () -> Unit) {
internal fun testClass(name: String, f: () -> Unit) {
val fs = f.toString()
if ("$name(" !in fs) throw Exception("Name of class '$name' unexpectedly mangled: $fs")
}
fun testFun(name: String, f: () -> Unit) {
internal fun testFun(name: String, f: () -> Unit) {
val fs = f.toString()
if ("$name(" in fs) throw Exception("Name of fun '$name' unexpectedly not mangled: $fs")