mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
12 lines
169 B
Kotlin
Vendored
12 lines
169 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
fun box(): String {
|
|
val result = (1..5).fold(0) { x, y -> x + y }
|
|
|
|
assertEquals(15, result)
|
|
|
|
return "OK"
|
|
}
|