[Test] Replace public fun box() with fun box() in all box tests

This commit is contained in:
Dmitriy Novozhilov
2021-07-14 15:58:48 +03:00
committed by teamcityserver
parent c168a561df
commit b9c549803d
31 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ package test2
import test.A
public fun box(): String {
fun box(): String {
return B().test(B())
}
+1 -1
View File
@@ -16,7 +16,7 @@ class C : A() {
}
}
public fun box(): String {
fun box(): String {
return C().a()
}
+10 -10
View File
@@ -11,15 +11,15 @@ fun sample() : Reader {
World""");
}
fun box() : String {
// NOTE: Also tested in stdlib: LineIteratorTest.useLines
fun box() : String {
// NOTE: Also tested in stdlib: LineIteratorTest.useLines
// TODO compiler error
// both these expressions causes java.lang.NoClassDefFoundError: collections/CollectionPackage
val list1 = sample().useLines { it.toList() }
val list2 = sample().useLines<ArrayList<String>>{ it.toCollection(arrayListOf()) }
// TODO compiler error
// both these expressions causes java.lang.NoClassDefFoundError: collections/CollectionPackage
val list1 = sample().useLines { it.toList() }
val list2 = sample().useLines<ArrayList<String>>{ it.toCollection(arrayListOf()) }
if(arrayListOf("Hello", "World") != list1) return "fail"
if(arrayListOf("Hello", "World") != list2) return "fail"
return "OK"
}
if(arrayListOf("Hello", "World") != list1) return "fail"
if(arrayListOf("Hello", "World") != list2) return "fail"
return "OK"
}