Add more console operations, nicer naming in natives. (#46)

This commit is contained in:
Nikolay Igotti
2016-11-08 17:38:36 +03:00
committed by GitHub
parent 5b7d0257e8
commit 91035b692b
8 changed files with 75 additions and 39 deletions
+7 -1
View File
@@ -153,7 +153,7 @@ task local_variable(type: UnitKonanTest) {
}
task hello0(type: RunKonanTest) {
goldValue = "Hello, world!"
goldValue = "Hello, world!\n"
source = "runtime/basic/hello0.kt"
}
@@ -170,6 +170,12 @@ task hello2(type: RunKonanTest) {
source = "runtime/basic/hello2.kt"
} */
/* TODO: enable, once can call toString() on Int.
task hello3(type: RunKonanTest) {
goldValue = "239"
source = "runtime/basic/hello3.kt"
} */
task if_else(type: UnitKonanTest) {
source = "codegen/branching/if_else.kt"
}
+1 -2
View File
@@ -1,4 +1,3 @@
// TODO: remove kotlin_native.io once overrides are in place.
fun main(args : Array<String>) {
kotlin.io.print("Hello, world!")
println("Hello, world!")
}
+1 -1
View File
@@ -1,4 +1,4 @@
// TODO: remove kotlin_native.io once overrides are in place.
fun main(args : Array<String>) {
kotlin.io.print(kotlin.io.readLine())
print(readLine())
}
@@ -0,0 +1,3 @@
fun main(args : Array<String>) {
print(239)
}