From 549d08b10215e4737b8bf129b73d3ea6619a3261 Mon Sep 17 00:00:00 2001 From: kjhoerr Date: Tue, 21 Jun 2016 09:31:05 -0400 Subject: [PATCH 1/2] fix unused parameter The website still needs to be fixed - deriveMetaInformationTypeSignatures cannot be completed due to "not enough arguments". --- src/main/scala/stdlib/TypeSignatures.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/TypeSignatures.scala b/src/main/scala/stdlib/TypeSignatures.scala index b5df2a64..460afaca 100644 --- a/src/main/scala/stdlib/TypeSignatures.scala +++ b/src/main/scala/stdlib/TypeSignatures.scala @@ -50,7 +50,7 @@ object TypeSignatures extends FlatSpec with Matchers with exercise.Section { */ def deriveMetaInformationTypeSignatures(res0: Boolean, res1: String, res2: String) { val zoom = "zoom" - zoom.getClass should be(classOf[String]) + zoom.getClass.isInstanceOf[String] should be(res0) zoom.getClass.getCanonicalName should be(res1) zoom.getClass.getSimpleName should be(res2) } From 33837547a6d69d2687912ae382da317dac97d992 Mon Sep 17 00:00:00 2001 From: kjhoerr Date: Tue, 21 Jun 2016 09:59:44 -0400 Subject: [PATCH 2/2] fix type mismatch --- src/main/scala/stdlib/TypeSignatures.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/TypeSignatures.scala b/src/main/scala/stdlib/TypeSignatures.scala index 460afaca..c7ea879d 100644 --- a/src/main/scala/stdlib/TypeSignatures.scala +++ b/src/main/scala/stdlib/TypeSignatures.scala @@ -50,7 +50,7 @@ object TypeSignatures extends FlatSpec with Matchers with exercise.Section { */ def deriveMetaInformationTypeSignatures(res0: Boolean, res1: String, res2: String) { val zoom = "zoom" - zoom.getClass.isInstanceOf[String] should be(res0) + zoom.isInstanceOf[String] should be(res0) zoom.getClass.getCanonicalName should be(res1) zoom.getClass.getSimpleName should be(res2) }