Skip to content

Commit

Permalink
Updated ScalaTest 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kiroco12 committed Dec 4, 2019
1 parent 221b513 commit 5d4e0e3
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 18 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Expand Up @@ -13,7 +13,8 @@ lazy val fpinscala = (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
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
5 changes: 3 additions & 2 deletions src/main/scala/fpinscalalib/ErrorHandlingSection.scala
Expand Up @@ -9,14 +9,15 @@ package fpinscalalib
import fpinscalalib.customlib.errorhandling._
import fpinscalalib.customlib.errorhandling.Option._
import fpinscalalib.customlib.errorhandling.ExampleHelper._
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

import scala.util.{Success, Try}

/** @param name handling_error_without_exceptions
*/
object ErrorHandlingSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
Expand Up @@ -6,15 +6,16 @@

package fpinscalalib

import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import fpinscalalib.customlib.functionaldatastructures._
import fpinscalalib.customlib.functionaldatastructures.List._
import Tree._

/** @param name functional_data_structures
*/
object FunctionalDataStructuresSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
Expand Up @@ -8,13 +8,14 @@ package fpinscalalib

import fpinscalalib.customlib.functionalparallelism.Par
import fpinscalalib.customlib.functionalparallelism.Par._
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import java.util.concurrent.Executors

/** @param name purely_functional_parallelism
*/
object FunctionalParallelismSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/fpinscalalib/FunctionalStateSection.scala
Expand Up @@ -8,13 +8,14 @@ package fpinscalalib

import fpinscalalib.customlib.state.RNG.Simple
import fpinscalalib.customlib.state.RNG._
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import fpinscalalib.customlib.state._

/** @param name pure_functional_state
*/
object FunctionalStateSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/fpinscalalib/GettingStartedWithFPSection.scala
Expand Up @@ -6,12 +6,13 @@

package fpinscalalib

import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

/** @param name getting_started_with_functional_programming
*/
object GettingStartedWithFPSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/fpinscalalib/ParserCombinatorsSection.scala
Expand Up @@ -6,7 +6,8 @@

package fpinscalalib

import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import fpinscalalib.customlib.parsing.{JSON, ParseError, Reference}
import fpinscalalib.customlib.parsing.ReferenceTypes._
import Reference._
Expand All @@ -15,7 +16,7 @@ import scala.util.matching.Regex
/** @param name parser_combinatorss
*/
object ParserCombinatorsSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section
with ReferenceHelper {
Expand Down
5 changes: 3 additions & 2 deletions src/main/scala/fpinscalalib/PropertyBasedTestingSection.scala
Expand Up @@ -7,15 +7,16 @@
package fpinscalalib

import fpinscalalib.customlib.state.{RNG, State}
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import fpinscalalib.customlib.testing.{Gen, SGen}
import fpinscalalib.customlib.testing.Gen._
import fpinscalalib.customlib.testing.Prop._

/** @param name property_based_testing
*/
object PropertyBasedTestingSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down
Expand Up @@ -9,12 +9,13 @@ package fpinscalalib
import fpinscalalib.customlib.laziness._
import fpinscalalib.customlib.laziness.Stream
import fpinscalalib.customlib.laziness.Stream._
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

/** @param name strictness_and_laziness
*/
object StrictnessAndLazinessSection
extends FlatSpec
extends AnyFlatSpec
with Matchers
with org.scalaexercises.definitions.Section {

Expand Down

0 comments on commit 5d4e0e3

Please sign in to comment.