Skip to content
Permalink
Browse files

Updated ScalaTest 3.1.0

  • Loading branch information
kiroco12 committed Dec 4, 2019
1 parent b5d35ab commit 5c634e046ee37f3295b7b6e70f3e27c192460abb
@@ -16,7 +16,8 @@ lazy val monocle = (project in file("."))
%%("scalatest", V.scalatest),
%%("scalacheck", V.scalacheck),
"org.typelevel" %% "alleycats-core" % V.cats,
"com.github.alexarchambault" %% "scalacheck-shapeless_1.14" % V.scalacheckShapeless
"com.github.alexarchambault" %% "scalacheck-shapeless_1.14" % V.scalacheckShapeless,
"org.scalatestplus" %% "scalatestplus-scalacheck" % V.scalatestplusScheck
),
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.1" cross CrossVersion.full)
)
@@ -19,7 +19,8 @@ object ProjectPlugin extends AutoPlugin {
val cats: String = "2.0.0"
val monocle: String = "2.0.0"
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"
}
@@ -8,7 +8,8 @@ package monoclelib

import monocle.Iso
import monocle.macros.GenIso
import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import org.scalaexercises.definitions._

object IsoHelper {
@@ -42,7 +43,7 @@ object IsoHelper {
*
* @param name iso
*/
object IsoExercises extends FlatSpec with Matchers with Section {
object IsoExercises extends AnyFlatSpec with Matchers with Section {

import IsoHelper._

@@ -10,7 +10,8 @@ import monocle.Lens
import monocle.macros.GenLens
import monocle.macros.Lenses
import org.scalaexercises.definitions._
import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

object LensHelper {
case class Address(streetNumber: Int, streetName: String)
@@ -65,7 +66,7 @@ object LensHelper {
*
* @param name lens
*/
object LensExercises extends FlatSpec with Matchers with Section {
object LensExercises extends AnyFlatSpec with Matchers with Section {

import LensHelper._

@@ -8,7 +8,8 @@ package monoclelib

import monocle.Optional
import org.scalaexercises.definitions._
import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

object OptionalHelper {

@@ -55,7 +56,7 @@ object OptionalHelper {
*
* @param name optional
*/
object OptionalExercises extends FlatSpec with Matchers with Section {
object OptionalExercises extends AnyFlatSpec with Matchers with Section {

import OptionalHelper._

@@ -8,7 +8,8 @@ package monoclelib

import monocle.Prism
import org.scalaexercises.definitions._
import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

object PrismHelper {
sealed trait Json
@@ -66,7 +67,7 @@ object PrismHelper {
*
* @param name prism
*/
object PrismExercises extends FlatSpec with Matchers with Section {
object PrismExercises extends AnyFlatSpec with Matchers with Section {

import PrismHelper._

@@ -7,7 +7,8 @@
package monoclelib

import org.scalaexercises.definitions._
import org.scalatest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import monocle.Traversal

object TraversalHelper {
@@ -52,7 +53,7 @@ object TraversalHelper {
*
* @param name traversal
*/
object TraversalExercises extends FlatSpec with Matchers with Section {
object TraversalExercises extends AnyFlatSpec with Matchers with Section {

import TraversalHelper._

@@ -9,11 +9,11 @@ package monoclelib
import IsoHelper.Person
import org.scalacheck.ScalacheckShapeless._
import org.scalaexercises.Test
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite
import org.scalatestplus.scalacheck.Checkers
import shapeless.HNil

class IsoSpec extends FunSuite with Checkers {
class IsoSpec extends AnyFunSuite with Checkers {

test("exercise person to tuple") {
check(
@@ -10,11 +10,11 @@ import LensHelper.{Address, Person, Point}
import org.scalacheck.{Arbitrary, Gen}
import org.scalacheck.ScalacheckShapeless._
import org.scalaexercises.Test
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite
import org.scalatestplus.scalacheck.Checkers
import shapeless.HNil

class LensSpec extends FunSuite with Checkers {
class LensSpec extends AnyFunSuite with Checkers {

implicit val addressArbitrary = Arbitrary {
for {
@@ -8,11 +8,11 @@ package monoclelib

import org.scalacheck.ScalacheckShapeless._
import org.scalaexercises.Test
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite
import org.scalatestplus.scalacheck.Checkers
import shapeless.HNil

class OptionalSpec extends FunSuite with Checkers {
class OptionalSpec extends AnyFunSuite with Checkers {

test("exercise non empty") {
check(
@@ -8,13 +8,13 @@ package monoclelib

import PrismHelper.{JNum, JStr}
import org.scalaexercises.Test
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite
import org.scalatestplus.scalacheck.Checkers

import org.scalacheck.ScalacheckShapeless._
import shapeless.HNil

class PrismSpec extends FunSuite with Checkers {
class PrismSpec extends AnyFunSuite with Checkers {

test("exercise get option apply") {
check(
@@ -9,11 +9,11 @@ package monoclelib
import TraversalHelper.Point
import org.scalacheck.ScalacheckShapeless._
import org.scalaexercises.Test
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite
import org.scalatestplus.scalacheck.Checkers
import shapeless.HNil

class TraversalSpec extends FunSuite with Checkers {
class TraversalSpec extends AnyFunSuite with Checkers {

test("exercise traversal") {
check(

0 comments on commit 5c634e0

Please sign in to comment.
You can’t perform that action at this time.