Add more console operations, nicer naming in natives. (#46)
This commit is contained in:
@@ -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,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,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)
|
||||
}
|
||||
Reference in New Issue
Block a user