Skip to content

Updated ScalaTest 3.1.0 #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ lazy val shapeless = (project in file("."))
%%("shapeless", V.shapeless),
%%("scalatest", V.scalatest),
%%("scalacheck", V.scalacheck),
"com.github.alexarchambault" %% "scalacheck-shapeless_1.14" % V.scalacheckShapeless
"com.github.alexarchambault" %% "scalacheck-shapeless_1.14" % V.scalacheckShapeless,
"org.scalatestplus" %% "scalatestplus-scalacheck" % V.scalatestplusScheck
)
)

Expand Down
3 changes: 2 additions & 1 deletion project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ object ProjectPlugin extends AutoPlugin {
lazy val V = new {
val scala212: String = "2.12.10"
val shapeless: String = "2.3.3"
val scalatest: String = "3.0.8"
val scalatest: String = "3.1.0"
val scalatestplusScheck: String = "3.1.0.0-RC2"
val scalacheck: String = "1.14.2"
val scalacheckShapeless: String = "1.2.3"
}
Expand Down
8 changes: 6 additions & 2 deletions src/main/scala/shapeless/ArityExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._
import ops.function._
import syntax.std.function._
Expand All @@ -33,7 +34,10 @@ object Helper {
*
* @param name arity
*/
object ArityExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object ArityExercises
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {
import Helper._

/** Abstracting over arity
Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/AutoTypeClassExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
package shapelessex

import scala.language.implicitConversions
import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

trait Monoid[T] {
Expand Down Expand Up @@ -145,7 +146,7 @@ object MonoidSyntax {
*
*/
object AutoTypeClassExercises
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/CoproductExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

/** == Coproducts and discriminated unions ==
Expand All @@ -18,7 +19,7 @@ import shapeless._
* @param name coproducts
*/
object CoproductExercises
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/ExtensibleRecordsExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

/** == Extensible records ==
*
Expand All @@ -29,7 +30,7 @@ import org.scalatest._
*
*/
object ExtensibleRecordsExercises
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
8 changes: 6 additions & 2 deletions src/main/scala/shapeless/GenericExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

object GenericHelper {
Expand Down Expand Up @@ -42,7 +43,10 @@ object GenericHelper {
*
* @param name generic
*/
object GenericExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object GenericExercises
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {
import GenericHelper._

/** {{{
Expand Down
8 changes: 6 additions & 2 deletions src/main/scala/shapeless/HListExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

object size extends Poly1 {
Expand Down Expand Up @@ -44,7 +45,10 @@ object CovariantHelper {
*
* @param name heterogenous_lists
*/
object HListExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object HListExercises
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

/** It has a `map` operation, applying a polymorphic function value across its elements. This means that it subsumes both
* typical `HList`'s and also `KList`'s (`HList`'s whose elements share a common outer type constructor).
Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/HMapExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

/** == Heterogenous maps ==
Expand All @@ -24,7 +25,7 @@ import shapeless._
*
* @param name HMap
*/
object HMapExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object HMapExercises extends AnyFlatSpec with Matchers with org.scalaexercises.definitions.Section {

object Helper {
class BiMapIS[K, V]
Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/LazyExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

/** == First class lazy values tie implicit recursive knots ==
Expand All @@ -24,7 +25,7 @@ import shapeless._
*
* @param name lazy
*/
object LazyExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object LazyExercises extends AnyFlatSpec with Matchers with org.scalaexercises.definitions.Section {

object Helper {

Expand Down
8 changes: 6 additions & 2 deletions src/main/scala/shapeless/LensesExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

/** == Boilerplate-free lenses for arbitrary case classes ==
Expand All @@ -32,7 +33,10 @@ import shapeless._
*
* @param name lenses
*/
object LensesExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object LensesExercises
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

object Helper {
// A pair of ordinary case classes ...
Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/PolyExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._
import poly.{~>}

Expand All @@ -17,7 +18,7 @@ import poly.{~>}
*
* @param name polymorphic_function_values
*/
object PolyExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object PolyExercises extends AnyFlatSpec with Matchers with org.scalaexercises.definitions.Section {

object choose extends (Seq ~> Option) {
def apply[T](s: Seq[T]) = s.headOption
Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/SingletonExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

/** == Singleton-typed literals ==
Expand All @@ -19,7 +20,7 @@ import shapeless._
*
*/
object SingletonExercises
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
8 changes: 6 additions & 2 deletions src/main/scala/shapeless/SizedExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

object SizedHelper {
Expand Down Expand Up @@ -47,7 +48,10 @@ object SizedHelper {
*
* @param name sized
*/
object SizedExercises extends FlatSpec with Matchers with org.scalaexercises.definitions.Section {
object SizedExercises
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {
import SizedHelper._

/** In the example below we define a method `csv` whose signature guarantees at compile time that there are exactly as many
Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/TuplesHListExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

/** == HList-style operations on standard Scala tuples ==
Expand All @@ -15,7 +16,7 @@ import shapeless._
* @param name tuples
*/
object TuplesHListExercises
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/TypeCheckingExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

import scala.util.Try

Expand All @@ -29,7 +30,7 @@ import scala.util.Try
* @param name type_checking
*/
object TypeCheckingExercises
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/shapeless/TypeSafeCastExercises.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package shapelessex

import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import shapeless._

/** == Type safe cast ==
Expand All @@ -19,7 +20,7 @@ import shapeless._
* @param name type_safe_cast
*/
object TypeSafeCastExercises
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down