[IR] update testdata: escape special symbols in Char and String constant values

This commit is contained in:
Zalim Bashorov
2020-11-17 02:17:25 +03:00
committed by teamcityserver
parent 0f10b5eb9e
commit 503370c9c2
3 changed files with 11 additions and 13 deletions
+9 -9
View File
@@ -1,36 +1,36 @@
val test1: String
field = "🤗"
field = "\uD83E\uDD17"
get
val test2: String
field = "🤗🤗"
field = "\uD83E\uDD17\uD83E\uDD17"
get
const val testConst1: String
field = "🤗"
field = "\uD83E\uDD17"
get
const val testConst2: String
field = "🤗🤗"
field = "\uD83E\uDD17\uD83E\uDD17"
get
const val testConst3: String
field = "🤗🤗🤗"
field = "\uD83E\uDD17\uD83E\uDD17\uD83E\uDD17"
get
const val testConst4: String
field = "🤗🤗🤗🤗"
field = "\uD83E\uDD17\uD83E\uDD17\uD83E\uDD17\uD83E\uDD17"
get
fun test1(x: Int): String {
return "🤗" + x
return "\uD83E\uDD17" + x
}
fun test2(x: Int): String {
return x + "🤗"
return x + "\uD83E\uDD17"
}
fun test3(x: Int): String {
return x + "🤗" + x
return x + "\uD83E\uDD17" + x
}
@@ -23,9 +23,7 @@ val test4: String
get
val test5: String
field = "
abc
"
field = "\nabc\n"
get
val test6: String
@@ -1,5 +1,5 @@
private const val BACKSLASH: Char
field = '\'
field = '\\'
private get
private fun Reader.nextChar(): Char? {