Move some tests from boxWithStdlib/ to box/

Move those tests which do not require neither stdlib nor reflect
This commit is contained in:
Alexander Udalov
2016-03-05 18:39:20 +03:00
committed by Alexander Udalov
parent 54a615fcd3
commit 20e36438e2
217 changed files with 1561 additions and 1397 deletions
+15
View File
@@ -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.keys.contains("ffffff")) return "fail 5"
return "OK"
}