Commits

Dianne Marsh committed 423f553

Added cheat code for intercept

Comments (0)

Files changed (1)

src/test/scala/org/functionalkoans/forscala/AboutMaps.scala

 
     val myMap = Map("OH" -> "Ohio", "WI" -> "Wisconsin", "IA" -> "Iowa")
 
-
-    intercept[NoSuchElementException] {
+    // Cheat Code (because this is hard to illustrate): uncomment the intercept code to make this pass 
+    //intercept[NoSuchElementException] {
 
       myMap("MI") should be(__)
-    }
+    //}
   }
 
   koan("Map elements can be removed in multiple") {