[Test] Replace public fun box() with fun box() in all box tests
This commit is contained in:
committed by
teamcityserver
parent
c168a561df
commit
b9c549803d
+1
-1
@@ -3,7 +3,7 @@
|
||||
public class SomeClass() : java.lang.Object() {
|
||||
}
|
||||
|
||||
public fun box():String {
|
||||
fun box():String {
|
||||
System.out?.println(SomeClass().getClass())
|
||||
return "OK"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
if ( 0 == 0 ) { // Does not crash if either this...
|
||||
if ( 0 == 0 ) { // ...or this is changed to if ( true )
|
||||
// Does not crash if the following is uncommented.
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ class Outer() {
|
||||
}
|
||||
}
|
||||
|
||||
fun box (): String {
|
||||
fun box(): String {
|
||||
val inner = Outer.Companion.Inner()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
operator fun Int?.inc() : Int { if (this != null) return this.inc() else throw NullPointerException() }
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int? = 10
|
||||
val j = i++
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
operator fun Int?.inc() = this!!.inc()
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int? = 10
|
||||
val j = i++
|
||||
|
||||
|
||||
+1
-1
@@ -22,4 +22,4 @@ public open class PerfectNumberFinder() {
|
||||
}
|
||||
}
|
||||
|
||||
fun box () = if (PerfectNumberFinder().isPerfect(28)) "OK" else "fail"
|
||||
fun box() = if (PerfectNumberFinder().isPerfect(28)) "OK" else "fail"
|
||||
|
||||
Reference in New Issue
Block a user