Make emptyMap upperbound to be Any? rather than Any.

#KT-9963
This commit is contained in:
Ilya Gorbunov
2015-11-11 01:28:25 +03:00
parent 6f2fb3f9aa
commit 5b484f1e05
2 changed files with 9 additions and 5 deletions
@@ -89,6 +89,10 @@ public fun <K, V> CompareContext<Map<K, V>>.mapBehavior() {
if (expected.isEmpty().not())
propertyEquals { contains(keySet().first()) }
propertyEquals { containsKeyRaw(keys.firstOrNull()) }
propertyEquals { containsValueRaw(values.firstOrNull()) }
propertyEquals { getRaw(null) }
compareProperty( { keySet() }, { setBehavior("keySet") } )
compareProperty( { entrySet() }, { setBehavior("entrySet") } )
compareProperty( { values() }, { collectionBehavior("values") })