fix one test
This commit is contained in:
@@ -2,7 +2,7 @@ fun escapeChar(c : Char) : String? = when (c) {
|
||||
'\\' -> "\\\\"
|
||||
'\n' -> "\\n"
|
||||
'"' -> "\\\""
|
||||
else -> String.valueOf(c)
|
||||
else -> "" + c
|
||||
}
|
||||
|
||||
fun String.escape(i : Int = 0, result : String = "") : String =
|
||||
@@ -26,4 +26,4 @@ fun box() : String {
|
||||
System.out?.println(" val s = \"" + s.escape() + "\";");
|
||||
System.out?.println(s);
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user