Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
699829ccb3e80dbb53c10cccdf1e50f06a5c5346
/
.
/
compiler
/
testData
/
codegen
/
box
/
boxingOptimization
/
foldRange.kt
blob: 464963393d531eebf199911b0d9245f82bb8ce2e [
file
]
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
import
kotlin
.
test
.
assertEquals
fun box
():
String
{
val result
=
(
1.
.
5
).
fold
(
0
)
{
x
,
y
->
x
+
y
}
assertEquals
(
15
,
result
)
return
"OK"
}