Move FullJdk tests to boxWithStdlib
This commit is contained in:
committed by
Alexander Udalov
parent
d23f82177f
commit
f994c9924f
@@ -0,0 +1,13 @@
|
||||
import java.net.*
|
||||
|
||||
fun String.decodeURI(encoding : String) : String? =
|
||||
try {
|
||||
URLDecoder.decode(this, encoding)
|
||||
}
|
||||
catch (e : Throwable) {
|
||||
null
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
return if("hhh".decodeURI("") == null) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user