Move JdkAnnotationsTest to boxWithStdlib

This commit is contained in:
Alexander Udalov
2013-02-07 22:04:59 +04:00
committed by Alexander Udalov
parent f994c9924f
commit 31231fe18b
6 changed files with 30 additions and 49 deletions
@@ -0,0 +1,15 @@
import java.util.*
fun box(): String {
val map: MutableMap<String, Int> = HashMap<String, Int>()
map.put("a", 1)
map.put("bb", 2)
map.put("ccc", 3)
map.put("dddd", 4)
if (map.get("a") != 1) return "fail 1"
if (map.size() != 4) return "fail 2"
if (map.get("eeeee") != null) return "fail 3"
if (!map.containsKey("bb")) return "fail 4"
if (map.entrySet().contains("ffffff")) return "fail 5"
return "OK"
}