This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.scalatest._ | |
trait TagGroups extends SuiteMixin { this: Suite => | |
private val groups: Map[String, Set[String]] = | |
Map( | |
"NonUnit" -> Set("org.scalatest.tags.Disk", "org.scalatest.tags.Network"), | |
"Sluggish" -> Set("org.scalatest.tags.Slow", "org.scalatest.tags.Network") | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This was my proof of concept sketch for doing matcher factories with an | |
// compile-time HList for type constructors instead of code-generated MatcherFactoryN's. | |
// I just stored regular types here, but I figured it would be straightforward to | |
// make those type constructors. I never tried doing the implicit recursive unrolling | |
// that would be required to actually use something like this in ScalaTest, but that | |
// would be fun to try as an intellectual exercise. For ScalaTest I decided that even | |
// if I could get that working, it would end up being too "clever" for ScalaTest, so | |
// I opted for the MatcherFactoryN's that I felt would be simpler for users to understand. | |
sealed trait MatcherFactory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> import org.scalautils._ | |
import org.scalautils._ | |
scala> import org.scalatest._ | |
import org.scalatest._ | |
scala> import Matchers._ | |
import Matchers._ | |
scala> import TypeCheckedTripleEquals._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> import org.scalatest._ | |
import org.scalatest._ | |
scala> import prop._ | |
import prop._ | |
scala> import TableDrivenPropertyChecks._ | |
import TableDrivenPropertyChecks._ | |
// I thought this would give a good type error, except the Scala compiler decides that you meant you wanted a |
NewerOlder