matchers/Hashmap

Matchers for Hashmaps

This module contains utility matchers that make it easier to write assertions that involve Hashmaps.

public func hasKey<K, V>(key : T.TestableItem<K>) : M.Matcher<HM.HashMap<K, V>>

Tests that a HashMap contains a key

public func atKey<K, V>(key : T.TestableItem<K>, matcher : M.Matcher<V>) : M.Matcher<HM.HashMap<K, V>>

Tests that a HashMap matches at a given key