Details
Description
checkAnswer doesn't handle Map[K, V] properly. For example:
scala> Map(1 -> 2, 2 -> 1).toString res0: String = Map(1 -> 2, 2 -> 1) scala> Map(2 -> 1, 1 -> 2).toString res1: String = Map(2 -> 1, 1 -> 2)
We can't rely on toString to compare Map[K, V] instances.
Need to update checkAnswer to special case Map[K, V].