Fixed trailing newline in consoleReadUtf8
This commit is contained in:
committed by
Sergey Bogolepov
parent
baaee2b816
commit
049d29af75
@@ -478,13 +478,13 @@ task hello0(type: RunKonanTest) {
|
||||
}
|
||||
|
||||
task hello1(type: RunStandaloneKonanTest) {
|
||||
goldValue = "Hello World\n"
|
||||
goldValue = "Hello World"
|
||||
testData = "Hello World\n"
|
||||
source = "runtime/basic/hello1.kt"
|
||||
}
|
||||
|
||||
task hello2(type: RunStandaloneKonanTest) {
|
||||
goldValue = "you entered 'Hello World\n'"
|
||||
goldValue = "you entered 'Hello World'"
|
||||
testData = "Hello World\n"
|
||||
source = "runtime/basic/hello2.kt"
|
||||
}
|
||||
@@ -518,6 +518,18 @@ task entry2(type: LinkKonanTest) {
|
||||
flags = ["-entry", "foo"]
|
||||
}
|
||||
|
||||
task readline0(type: RunStandaloneKonanTest) {
|
||||
goldValue = "41"
|
||||
testData = "41\r\n"
|
||||
source = "runtime/basic/readline0.kt"
|
||||
}
|
||||
|
||||
task readline1(type: RunStandaloneKonanTest) {
|
||||
goldValue = ""
|
||||
testData = "\n"
|
||||
source = "runtime/basic/readline1.kt"
|
||||
}
|
||||
|
||||
task tostring0(type: RunKonanTest) {
|
||||
goldValue = "127\n-1\n239\nA\nЁ\nト\n1122334455\n112233445566778899\n3.14159265358\n1.0E27\n1.0E-300\ntrue\nfalse\n"
|
||||
source = "runtime/basic/tostring0.kt"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
print(readLine()!!.toInt())
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
print(readLine()!!)
|
||||
}
|
||||
Reference in New Issue
Block a user