Make emptyMap upperbound to be Any? rather than Any.
#KT-9963
This commit is contained in:
@@ -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") })
|
||||
|
||||
Reference in New Issue
Block a user