Add String.subSequence implementation. (#61)

This commit is contained in:
Nikolay Igotti
2016-11-15 13:27:21 +03:00
committed by GitHub
parent 69b7cdb866
commit c5cfa0ac4f
5 changed files with 34 additions and 4 deletions
+5
View File
@@ -198,6 +198,11 @@ task tostring0(type: RunKonanTest) {
source = "runtime/basic/tostring0.kt"
}
task tostring1(type: RunKonanTest) {
goldValue = "ello\n"
source = "runtime/basic/tostring1.kt"
}
task array0(type: RunKonanTest) {
goldValue = "5\n6\n7\n8\n9\n10\n11\n12\n13\n"
source = "runtime/basic/array0.kt"
@@ -0,0 +1,4 @@
fun main(args : Array<String>) {
val hello = "Hello world"
println(hello.subSequence(1, 5).toString())
}