Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • intro-to-fp/short-exercises
  • s472501/short-exercises
  • s410344/short-exercises
3 results
Show changes
......@@ -6,10 +6,8 @@ import org.scalatest._
* Mix into a test suite to mark tests for ??? methods as "pending" instead of "failed"
*/
trait PendingIfUnimplemented extends TestSuiteMixin { this: TestSuite =>
abstract override def withFixture(test: NoArgTest): Outcome = {
super.withFixture(test) match {
abstract override def withFixture(test: NoArgTest): Outcome =
super.withFixture(test) match
case Failed(_: NotImplementedError) => Pending
case other => other
}
}
}
package typeclasses
import org.scalatest._
import testutil.PendingIfUnimplemented
@SuppressWarnings(Array("org.wartremover.warts.All"))
class FunctorSpec extends FlatSpec with Matchers with AppendedClues with PendingIfUnimplemented {
"The Functor instance for Option" should "be available in implicit scope" in {
"implicitly[Functor[Option]]" should compile
}
}