Move FullJdk tests to boxWithStdlib

This commit is contained in:
Alexander Udalov
2013-02-07 21:51:43 +04:00
committed by Alexander Udalov
parent d23f82177f
commit f994c9924f
8 changed files with 40 additions and 52 deletions
@@ -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"
}