Adjust testData to *Map transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6fa8083a70
commit
d71b0144d5
+6
-6
@@ -1,12 +1,12 @@
|
||||
class MyMap<K, V>: Map<K, V> {
|
||||
override val size: Int get() = 0
|
||||
override val isEmpty: Boolean get() = true
|
||||
override fun containsKey(key: Any?): Boolean = false
|
||||
override fun containsValue(value: Any?): Boolean = false
|
||||
override fun get(key: Any?): V? = null
|
||||
override fun keySet(): Set<K> = throw UnsupportedOperationException()
|
||||
override fun values(): Collection<V> = throw UnsupportedOperationException()
|
||||
override fun entrySet(): Set<Map.Entry<K, V>> = throw UnsupportedOperationException()
|
||||
override fun containsKey(key: K): Boolean = false
|
||||
override fun containsValue(value: V): Boolean = false
|
||||
override fun get(key: K): V? = null
|
||||
override val keys: Set<K> get() = throw UnsupportedOperationException()
|
||||
override val values: Collection<V> get() = throw UnsupportedOperationException()
|
||||
override val entries: Set<Map.Entry<K, V>> get() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
fun expectUoe(block: () -> Unit) {
|
||||
|
||||
Reference in New Issue
Block a user